mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-01 14:38:56 +00:00
Merge branch 'development' of github.com:h31ix/AntiCheat into development
Conflicts: src/main/java/net/h31ix/anticheat/manage/Backend.java
This commit is contained in:
commit
ea54427a63
1 file changed
+7
-9
@@ -179,18 +179,16 @@ public class PlayerListener extends EventListener
|
||||
}
|
||||
|
||||
/* Interactions Check */
|
||||
Block block = event.getClickedBlock();
|
||||
Block block = event.getClickedBlock();
|
||||
if(checkManager.willCheck(player, CheckType.INTERACTION) && Utilities.isInteractable(block.getType()))
|
||||
{
|
||||
// save load and actually call the backend check here.
|
||||
if(backend.checkInteraction(player, block))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
log("failed interaction check",player,CheckType.INTERACTION);
|
||||
}
|
||||
// save load and actually call the backend check here.
|
||||
if(backend.checkInteraction(player, block))
|
||||
{
|
||||
event.setCancelled(true);
|
||||
log("failed interaction check",player,CheckType.INTERACTION);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
@EventHandler(ignoreCancelled = true)
|
||||
|
||||
Reference in new issue
Block a user