From f532dce64b6669f9e420d471a20d017552560ae7 Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Wed, 14 Apr 2021 20:37:44 +0200 Subject: [PATCH] Reordering a lot of Stuff --- .../steamwar/spectatesystem/elements/REntity.java | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/de/steamwar/spectatesystem/elements/REntity.java b/src/de/steamwar/spectatesystem/elements/REntity.java index ed0abd5..a7dc873 100644 --- a/src/de/steamwar/spectatesystem/elements/REntity.java +++ b/src/de/steamwar/spectatesystem/elements/REntity.java @@ -33,15 +33,16 @@ public abstract class REntity { public static void tickFire() { getEntities().forEach((integer, entity) -> { - if(entity.fireTick > 0) + if(entity.fireTick > 0) { entity.fireTick--; - if(entity.fireTick == 0) { - DataWatcher dataWatcher = new DataWatcher(null); + if(entity.fireTick == 0) { + DataWatcher dataWatcher = new DataWatcher(null); - DataWatcherObject dataWatcherObject = new DataWatcherObject<>(0, DataWatcherRegistry.a); - dataWatcher.register(dataWatcherObject, (byte) 0); - dataWatcher.markDirty(dataWatcherObject); - entity.sendDataWatcher(dataWatcher); + DataWatcherObject dataWatcherObject = new DataWatcherObject<>(0, DataWatcherRegistry.a); + dataWatcher.register(dataWatcherObject, (byte) 0); + dataWatcher.markDirty(dataWatcherObject); + entity.sendDataWatcher(dataWatcher); + } } }); }