Switch checks are ignored when the item interaction is cancelled? #4613
-
Hey, I have a question about the codebase of Towny. We were able to track it down to us cancelling the item interaction by setting the ItemUse-Action to Why exactly is this Towny/src/com/palmergames/bukkit/towny/listeners/TownyPlayerListener.java Lines 317 to 327 in dc29ece Coincidentally, Would love to get some insight into why this Item Use check is in place, since item and block interactions should be rather distinct from each other. cc: @WalshyDev |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
I want to say I added that in because it worked to stop the unregistered slimefun items bypassing the Towny switch use tests. Did something change on your guys' end since then where you're no longer setting that action to DENY useItemInHand? |
Beta Was this translation helpful? Give feedback.
I want to say I added that in because it worked to stop the unregistered slimefun items bypassing the Towny switch use tests. Did something change on your guys' end since then where you're no longer setting that action to DENY useItemInHand?