forked from SteamWar/SteamWar
Format code
This commit is contained in:
+1
-2
@@ -183,8 +183,7 @@ public class Loadtimer implements Listener {
|
||||
|
||||
long ignTime = ignite - activate;
|
||||
long explTime = explode - ignTime - activate;
|
||||
if (explTime < 0)
|
||||
explTime = loadTime;
|
||||
if (explTime < 0) explTime = loadTime;
|
||||
|
||||
int finalAllTnt = allTnt;
|
||||
long finalExplTime = explTime;
|
||||
|
||||
+2
-1
@@ -150,8 +150,9 @@ public class TraceManager implements Listener {
|
||||
.map(Map.Entry::getKey)
|
||||
.findFirst()
|
||||
.orElse(null);
|
||||
if (traceId == null)
|
||||
if (traceId == null) {
|
||||
throw new RuntimeException("Trace not found while trying to remove see (c978eb98-b0b2-4009-91d8-acfa34e2831a)");
|
||||
}
|
||||
traces.remove(traceId);
|
||||
trace.hide();
|
||||
trace.getRecordsSaveFile().delete();
|
||||
|
||||
+2
-1
@@ -57,8 +57,9 @@ public class AFKStopperListener implements Listener {
|
||||
if (to == null) return;
|
||||
|
||||
Location from = event.getFrom();
|
||||
if (from.getPitch() != to.getPitch() || from.getYaw() != to.getYaw())
|
||||
if (from.getPitch() != to.getPitch() || from.getYaw() != to.getYaw()) {
|
||||
lastMovementTime = System.currentTimeMillis();
|
||||
}
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.LOWEST)
|
||||
|
||||
Reference in New Issue
Block a user