Non-solid blocks should not be blocking a players view of interacting with something. Fixes issue #91

This commit is contained in:
H31IX committed 2012-06-18 02:22:33 -04:00
1 parent a895bf94bd
commit 23303295bf
5 files changed
+25 -137

No files matched your search

@@ -168,7 +168,7 @@ public class PlayerListener extends EventListener
public void onPlayerInteract(PlayerInteractEvent event)
{
Player player = event.getPlayer();
Block playerClick = player.getTargetBlock(null, 5);
Block playerClick = player.getTargetBlock(Utilities.getNonSolid(), 5);
PlayerInventory inv = player.getInventory();
if (event.getAction() == Action.RIGHT_CLICK_AIR || event.getAction() == Action.RIGHT_CLICK_BLOCK)
{