mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Quick fix for building underwater, I'll have a better look later today.
This commit is contained in:
1 parent
43809faac1
commit
285cf3f977
2 files changed
+3
-3
No files matched your search
@@ -31,7 +31,7 @@ public class BlockListener implements Listener {
|
||||
Player player = event.getPlayer();
|
||||
Block block = event.getBlock();
|
||||
if(player != null)
|
||||
{
|
||||
{
|
||||
if(!am.swungArm(player))
|
||||
{
|
||||
tracker.increaseLevel(player);
|
||||
@@ -63,7 +63,7 @@ public class BlockListener implements Listener {
|
||||
Block block = event.getBlock();
|
||||
if(player != null)
|
||||
{
|
||||
if(!e.canSee(player, block))
|
||||
if(!e.canSee(player, block) && !player.getWorld().getBlockAt(player.getLocation()).isLiquid())
|
||||
{
|
||||
tracker.increaseLevel(player);
|
||||
plugin.log(player.getName()+" tried to place a block that they couldn't see!");
|
||||
|
||||
@@ -28,7 +28,7 @@ public class PlayerListener implements Listener {
|
||||
PlayerTracker tracker;
|
||||
ItemManager im;
|
||||
HealthManager hm;
|
||||
|
||||
|
||||
public PlayerListener(Anticheat plugin)
|
||||
{
|
||||
this.plugin = plugin;
|
||||
|
||||
Reference in new issue
Block a user