CommandHandler: parseAction inv actions 1 & 0 swapped?
bdotsamir opened this issue ยท 1 comments
I mentioned this in my PR #457 but it looks like when you're parsing the actions given by the player, action 11 (player inventory transactions) appear to be swapped when adding a qualifier +
/ -
.
The convention that I've seen thus far is when qualifiers are added, a 1
or 0
is added to the actionList. See container action 4 & session action 8.
However, the inventory action appears to have these swapped.
-inv
adds action 1, general addition.
CoreProtect/src/main/java/net/coreprotect/command/CommandHandler.java
Lines 129 to 132 in b48dcec
+inv
adds action 0, general subtraction.
CoreProtect/src/main/java/net/coreprotect/command/CommandHandler.java
Lines 134 to 137 in b48dcec
Is this intended?