13
0

Reordering a lot of Stuff

Dieser Commit ist enthalten in:
Chaoscaot 2021-04-14 20:37:44 +02:00
Ursprung aacff6b895
Commit f532dce64b

Datei anzeigen

@ -33,15 +33,16 @@ public abstract class REntity {
public static void tickFire() { public static void tickFire() {
getEntities().forEach((integer, entity) -> { getEntities().forEach((integer, entity) -> {
if(entity.fireTick > 0) if(entity.fireTick > 0) {
entity.fireTick--; entity.fireTick--;
if(entity.fireTick == 0) { if(entity.fireTick == 0) {
DataWatcher dataWatcher = new DataWatcher(null); DataWatcher dataWatcher = new DataWatcher(null);
DataWatcherObject<Byte> dataWatcherObject = new DataWatcherObject<>(0, DataWatcherRegistry.a); DataWatcherObject<Byte> dataWatcherObject = new DataWatcherObject<>(0, DataWatcherRegistry.a);
dataWatcher.register(dataWatcherObject, (byte) 0); dataWatcher.register(dataWatcherObject, (byte) 0);
dataWatcher.markDirty(dataWatcherObject); dataWatcher.markDirty(dataWatcherObject);
entity.sendDataWatcher(dataWatcher); entity.sendDataWatcher(dataWatcher);
}
} }
}); });
} }