mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 22:16:03 +00:00
Non-solid blocks should not be blocking a players view of interacting with something. Fixes issue #91
This commit is contained in:
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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user