SteamWar/BauSystem
Archiviert
13
0

Add dirtyFlag after explode

Dieser Commit ist enthalten in:
jojo 2020-07-19 20:42:10 +02:00
Ursprung 4eed29d7d6
Commit 6c625c51c0

Datei anzeigen

@ -270,6 +270,9 @@ public class TNTTracer15 {
static void explode(TNTPrimed tntPrimed) { static void explode(TNTPrimed tntPrimed) {
if (tntFrames.isEmpty()) return; if (tntFrames.isEmpty()) return;
if (System.currentTimeMillis() - lastExplosion > 4500) {
ShowManager.dirty();
}
lastExplosion = System.currentTimeMillis(); lastExplosion = System.currentTimeMillis();
tntFrames.getLast().explode(tntPrimed); tntFrames.getLast().explode(tntPrimed);
} }
@ -313,10 +316,8 @@ public class TNTTracer15 {
tntFrames.addLast(new TNTFrame()); tntFrames.addLast(new TNTFrame());
task = Bukkit.getScheduler().runTaskTimer(BauSystem.getPlugin(), TNTTracer15::run, 1, 1); task = Bukkit.getScheduler().runTaskTimer(BauSystem.getPlugin(), TNTTracer15::run, 1, 1);
current = System.currentTimeMillis(); current = System.currentTimeMillis();
if (status == Status.RECORD_AUTO) {
run(); run();
} }
}
if (status == Status.RECORD_AUTO) { if (status == Status.RECORD_AUTO) {
current = System.currentTimeMillis(); current = System.currentTimeMillis();
} }