mirror of
https://github.com/darksaid98/AntiCheatReloaded.git
synced 2026-12-03 22:15:28 +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
+6
-8
@@ -182,15 +182,13 @@ public class PlayerListener extends EventListener
|
|||||||
Block block = event.getClickedBlock();
|
Block block = event.getClickedBlock();
|
||||||
if(checkManager.willCheck(player, CheckType.INTERACTION) && Utilities.isInteractable(block.getType()))
|
if(checkManager.willCheck(player, CheckType.INTERACTION) && Utilities.isInteractable(block.getType()))
|
||||||
{
|
{
|
||||||
// save load and actually call the backend check here.
|
// save load and actually call the backend check here.
|
||||||
if(backend.checkInteraction(player, block))
|
if(backend.checkInteraction(player, block))
|
||||||
{
|
{
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
log("failed interaction check",player,CheckType.INTERACTION);
|
log("failed interaction check",player,CheckType.INTERACTION);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@EventHandler(ignoreCancelled = true)
|
@EventHandler(ignoreCancelled = true)
|
||||||
|
|||||||
Reference in new issue
Block a user