adjust for anticheat
This commit is contained in:
1 parent
55cb6c2d15
commit
23d07c0619
1 file changed
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user