Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
a57cd0287a
Commit
fca07eba75
@ -146,9 +146,7 @@ public class Recorder implements Listener {
|
||||
|
||||
{
|
||||
Bukkit.getScheduler().runTaskTimer(BauSystem.getInstance(), () -> {
|
||||
world.getEntitiesByClass(TNTPrimed.class).forEach(tntPrimed -> {
|
||||
get(tntPrimed).tick(tntPrimed);
|
||||
});
|
||||
tick();
|
||||
tntTraceRecorderMap.keySet()
|
||||
.stream()
|
||||
.filter(e -> !e.isValid())
|
||||
@ -158,6 +156,12 @@ public class Recorder implements Listener {
|
||||
}, 1, 1);
|
||||
}
|
||||
|
||||
private void tick() {
|
||||
world.getEntitiesByClass(TNTPrimed.class).forEach(tntPrimed -> {
|
||||
get(tntPrimed).tick(tntPrimed);
|
||||
});
|
||||
}
|
||||
|
||||
@EventHandler
|
||||
public void onEntityExplode(EntityExplodeEvent event) {
|
||||
Entity entity = event.getEntity();
|
||||
@ -168,5 +172,6 @@ public class Recorder implements Listener {
|
||||
Region region = tntTraceRecorderMap.get((TNTPrimed) entity);
|
||||
traceRecorder.explode((TNTPrimed) entity, !event.blockList().isEmpty() && region.inRegion(event.getLocation(), RegionType.BUILD, RegionExtensionType.EXTENSION));
|
||||
tntTraceRecorderMap.remove(entity);
|
||||
tick();
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren