diff --git a/src/main/java/io/sc3/plethora/api/method/ArgumentExt.kt b/src/main/java/io/sc3/plethora/api/method/ArgumentExt.kt index be9de77..bbf5fc3 100644 --- a/src/main/java/io/sc3/plethora/api/method/ArgumentExt.kt +++ b/src/main/java/io/sc3/plethora/api/method/ArgumentExt.kt @@ -84,8 +84,8 @@ object ArgumentExt { fun IArguments.optHand(index: Int): Hand { return when (val hand = optString(index, "main")!!.lowercase()) { - "main", "mainhand", "right" -> Hand.MAIN_HAND - "off", "offhand", "left" -> Hand.OFF_HAND + "main", "mainhand" -> Hand.MAIN_HAND + "off", "offhand" -> Hand.OFF_HAND else -> throw LuaException("Unknown hand '$hand', expected 'main' or 'off'") } }