adjust for anticheat

This commit is contained in:
NotCoded committed 2024-06-06 18:03:49 +02:00
1 parent 55cb6c2d15
commit 23d07c0619
1 file changed
+1 -1
+1 -1
View File
@@ -46,7 +46,7 @@ public class Main implements ModInitializer, FactoryPlugin {
punishment.check((ServerPlayer) player);
});
PlayerDetectionEvent.NOSWING.register((player, entity) -> {
PlayerDetectionEvent.NO_SWING.register((player, entity) -> {
Punishment punishment = PlayerDataManager.get(player).punishment;
punishment.noSwingOffences++;
punishment.check((ServerPlayer) player);