From 26a526c0e67bce64bb766a41f8d21e154c3c8a5c Mon Sep 17 00:00:00 2001 From: xGinko Date: Fri, 2 Aug 2024 02:16:16 +0200 Subject: [PATCH] semantics --- .../aef/modules/lagpreventions/physics/BlockFormOrGrow.java | 4 ++-- .../aef/modules/lagpreventions/physics/BlockPhysics.java | 2 +- .../aef/modules/lagpreventions/physics/Explosions.java | 6 +++--- .../aef/modules/lagpreventions/physics/LiquidSpread.java | 2 +- .../aef/modules/lagpreventions/physics/Noteblocks.java | 2 +- .../xginko/aef/modules/lagpreventions/physics/Pistons.java | 4 ++-- .../xginko/aef/modules/lagpreventions/physics/Redstone.java | 2 +- .../aef/modules/lagpreventions/physics/SculkActivity.java | 4 ++-- .../aef/modules/lagpreventions/physics/SculkBloom.java | 2 +- .../aef/modules/lagpreventions/physics/BlockFormOrGrow.java | 4 ++-- .../aef/modules/lagpreventions/physics/BlockPhysics.java | 2 +- .../aef/modules/lagpreventions/physics/Explosions.java | 6 +++--- .../aef/modules/lagpreventions/physics/LiquidSpread.java | 2 +- .../aef/modules/lagpreventions/physics/Noteblocks.java | 2 +- .../xginko/aef/modules/lagpreventions/physics/Pistons.java | 4 ++-- .../xginko/aef/modules/lagpreventions/physics/Redstone.java | 2 +- .../aef/modules/lagpreventions/physics/SculkActivity.java | 4 ++-- 17 files changed, 27 insertions(+), 27 deletions(-) diff --git a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/BlockFormOrGrow.java b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/BlockFormOrGrow.java index 3e114766c..5ec8d68f7 100755 --- a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/BlockFormOrGrow.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/BlockFormOrGrow.java @@ -49,7 +49,7 @@ private void onBlockForm(BlockFormEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } @@ -71,7 +71,7 @@ private void onBlockSpread(BlockSpreadEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } diff --git a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/BlockPhysics.java b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/BlockPhysics.java index ad39a21ef..6ed3b5c6e 100755 --- a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/BlockPhysics.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/BlockPhysics.java @@ -47,7 +47,7 @@ private void onBlockPhysics(BlockPhysicsEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } diff --git a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Explosions.java b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Explosions.java index 7acb76c5c..1273361cf 100644 --- a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Explosions.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Explosions.java @@ -46,7 +46,7 @@ private void onExplodePrime(ExplosionPrimeEvent event) { Location location = event.getEntity().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } @@ -67,7 +67,7 @@ private void onEntityExplode(EntityExplodeEvent event) { RegionData regionData = getRegionData(event.getLocation()); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } @@ -89,7 +89,7 @@ private void onBlockExplode(BlockExplodeEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } diff --git a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/LiquidSpread.java b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/LiquidSpread.java index cd08ad1f9..7de2f4f14 100755 --- a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/LiquidSpread.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/LiquidSpread.java @@ -48,7 +48,7 @@ private void onBlockFromTo(BlockFromToEvent event) { Location location = block.getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } diff --git a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Noteblocks.java b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Noteblocks.java index 058ede84b..a60b09604 100755 --- a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Noteblocks.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Noteblocks.java @@ -43,7 +43,7 @@ private void onNotePlay(NotePlayEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } diff --git a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Pistons.java b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Pistons.java index f32dc6448..9c6ab7802 100644 --- a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Pistons.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Pistons.java @@ -44,7 +44,7 @@ private void onPistonMove(BlockPistonExtendEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } @@ -66,7 +66,7 @@ private void onPistonMove(BlockPistonRetractEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } diff --git a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Redstone.java b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Redstone.java index d65ce55d1..7b41724ca 100644 --- a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Redstone.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Redstone.java @@ -43,7 +43,7 @@ private void onBlockRedstone(BlockRedstoneEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setNewCurrent(0); return; } diff --git a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/SculkActivity.java b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/SculkActivity.java index 6e64125ae..53cf02a1b 100644 --- a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/SculkActivity.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/SculkActivity.java @@ -73,7 +73,7 @@ private void onBlockRedstone(BlockRedstoneEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setNewCurrent(0); return; } @@ -97,7 +97,7 @@ private void onBlockPhysics(BlockPhysicsEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } diff --git a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/SculkBloom.java b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/SculkBloom.java index afcdd5686..ef7034ddb 100755 --- a/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/SculkBloom.java +++ b/AnarchyExploitFixesFolia/src/main/java/me/xginko/aef/modules/lagpreventions/physics/SculkBloom.java @@ -43,7 +43,7 @@ private void onSkulkBloom(SculkBloomEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/BlockFormOrGrow.java b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/BlockFormOrGrow.java index 68eb86ed0..0bf21055d 100755 --- a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/BlockFormOrGrow.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/BlockFormOrGrow.java @@ -49,7 +49,7 @@ private void onBlockForm(BlockFormEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } @@ -71,7 +71,7 @@ private void onBlockSpread(BlockSpreadEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/BlockPhysics.java b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/BlockPhysics.java index 768612dfe..f1159f3fe 100755 --- a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/BlockPhysics.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/BlockPhysics.java @@ -47,7 +47,7 @@ private void onBlockPhysics(BlockPhysicsEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Explosions.java b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Explosions.java index 971216183..1cdfdc717 100644 --- a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Explosions.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Explosions.java @@ -46,7 +46,7 @@ private void onExplodePrime(ExplosionPrimeEvent event) { Location location = event.getEntity().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } @@ -67,7 +67,7 @@ private void onEntityExplode(EntityExplodeEvent event) { RegionData regionData = getRegionData(event.getLocation()); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } @@ -89,7 +89,7 @@ private void onBlockExplode(BlockExplodeEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/LiquidSpread.java b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/LiquidSpread.java index ca80b37c1..e1291b8cb 100755 --- a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/LiquidSpread.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/LiquidSpread.java @@ -48,7 +48,7 @@ private void onBlockFromTo(BlockFromToEvent event) { Location location = block.getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Noteblocks.java b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Noteblocks.java index 561509ff5..b6fc591e1 100755 --- a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Noteblocks.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Noteblocks.java @@ -43,7 +43,7 @@ private void onNotePlay(NotePlayEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Pistons.java b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Pistons.java index e240d157a..8b57426e6 100644 --- a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Pistons.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Pistons.java @@ -44,7 +44,7 @@ private void onPistonMove(BlockPistonExtendEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } @@ -66,7 +66,7 @@ private void onPistonMove(BlockPistonRetractEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; } diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Redstone.java b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Redstone.java index 0a145d330..b32d01f3f 100644 --- a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Redstone.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/Redstone.java @@ -43,7 +43,7 @@ private void onBlockRedstone(BlockRedstoneEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setNewCurrent(0); return; } diff --git a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/SculkActivity.java b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/SculkActivity.java index 6e64125ae..53cf02a1b 100644 --- a/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/SculkActivity.java +++ b/AnarchyExploitFixesLegacy/src/main/java/me/xginko/aef/modules/lagpreventions/physics/SculkActivity.java @@ -73,7 +73,7 @@ private void onBlockRedstone(BlockRedstoneEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setNewCurrent(0); return; } @@ -97,7 +97,7 @@ private void onBlockPhysics(BlockPhysicsEvent event) { Location location = event.getBlock().getLocation(); RegionData regionData = getRegionData(location); - if (System.currentTimeMillis() < regionData.resumeTime.get()) { + if (regionData.resumeTime.get() > System.currentTimeMillis()) { event.setCancelled(true); return; }