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:
@@ -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();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user