mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-02 22:16:03 +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
1 file changed
+1
-1
@@ -63,7 +63,7 @@ public class BlockListener implements Listener {
|
|||||||
Block block = event.getBlock();
|
Block block = event.getBlock();
|
||||||
if(player != null)
|
if(player != null)
|
||||||
{
|
{
|
||||||
if(!e.canSee(player, block))
|
if(!e.canSee(player, block) && !player.getWorld().getBlockAt(player.getLocation()).isLiquid())
|
||||||
{
|
{
|
||||||
tracker.increaseLevel(player);
|
tracker.increaseLevel(player);
|
||||||
plugin.log(player.getName()+" tried to place a block that they couldn't see!");
|
plugin.log(player.getName()+" tried to place a block that they couldn't see!");
|
||||||
|
|||||||
Reference in new issue
Block a user