mirror of
https://github.com/PEXPlugins/Modifyworld.git
synced 2025-01-03 18:17:49 +01:00
Fixed throw check on non-air blocks.
This commit is contained in:
parent
503f5a8e40
commit
95dd7f5841
@ -181,7 +181,7 @@ public class PlayerListener extends ModifyworldListener {
|
||||
|
||||
Player player = event.getPlayer();
|
||||
|
||||
if (action == Action.RIGHT_CLICK_AIR) { //RIGHT_CLICK_AIR is cancelled by default.
|
||||
if (action == Action.RIGHT_CLICK_AIR || action == Action.RIGHT_CLICK_BLOCK) { //RIGHT_CLICK_AIR is cancelled by default.
|
||||
switch (player.getItemInHand().getType()) {
|
||||
case POTION: //Only check splash potions.
|
||||
if ((player.getItemInHand().getDurability() & 0x4000) != 0x4000) {
|
||||
@ -197,7 +197,9 @@ public class PlayerListener extends ModifyworldListener {
|
||||
event.getPlayer().updateInventory();
|
||||
}
|
||||
}
|
||||
return;
|
||||
if (action == Action.RIGHT_CLICK_AIR) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user