9
0
mirror of https://github.com/Auxilor/EcoMobs.git synced 2025-12-21 16:09:24 +00:00

Removed 10tick delay on timer

This commit is contained in:
Auxilor
2021-07-20 14:43:01 +01:00
parent c7ea383115
commit 31e3cb993e

View File

@@ -17,11 +17,9 @@ public class ChunkLoadTicker implements BossTicker {
public void tick(@NotNull final EcoBoss boss, public void tick(@NotNull final EcoBoss boss,
@NotNull final LivingEntity entity, @NotNull final LivingEntity entity,
final long tick) { final long tick) {
if (tick % 10 == 0) {
Chunk chunk = entity.getLocation().getChunk(); Chunk chunk = entity.getLocation().getChunk();
if (!chunk.isLoaded()) { if (!chunk.isLoaded()) {
chunk.load(); chunk.load();
} }
} }
}
} }