Skip to content

Commit

Permalink
semantics
Browse files Browse the repository at this point in the history
  • Loading branch information
xGinko committed Aug 2, 2024
1 parent 2e71f89 commit 26a526c
Show file tree
Hide file tree
Showing 17 changed files with 27 additions and 27 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit 26a526c

Please sign in to comment.