From d2a197f680beb58f745159c630aa2b418d560105 Mon Sep 17 00:00:00 2001 From: Major Date: Sun, 8 Apr 2018 15:46:06 +0100 Subject: [PATCH] Fix typo in shops dsl --- game/plugin/shops/src/dsl.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game/plugin/shops/src/dsl.kt b/game/plugin/shops/src/dsl.kt index 7aba837b..639ccb16 100644 --- a/game/plugin/shops/src/dsl.kt +++ b/game/plugin/shops/src/dsl.kt @@ -343,7 +343,7 @@ class SellBuilder(val amount: Int, val items: MutableList>) { * Overloads the unary minus on Pairs so that name+id pairs can be listed. Only intended to be used with the * overloaded String invokation operator. */ // ShopBuilder uses the lookup plugin, which can operate on _ids tacked on the end - operator fun Pair.unaryMinus() = items.add(Pair("{$this.first}_${this.second}", amount)) + operator fun Pair.unaryMinus() = items.add(Pair("${this.first}_${this.second}", amount)) /** * Overloads function invokation on Strings to map `"ambiguous_npc_name"(id)` to a [Pair].