mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-15 20:51:34 +01:00
Avoid instanceof check
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
c8ccc62525
commit
5734097789
@ -2,7 +2,6 @@ package net.minestom.server.instance;
|
||||
|
||||
import com.extollit.gaming.ai.path.model.ColumnarOcclusionFieldList;
|
||||
import it.unimi.dsi.fastutil.ints.Int2ObjectAVLTreeMap;
|
||||
import it.unimi.dsi.fastutil.ints.Int2ObjectMaps;
|
||||
import it.unimi.dsi.fastutil.ints.Int2ObjectOpenHashMap;
|
||||
import net.minestom.server.coordinate.Point;
|
||||
import net.minestom.server.entity.Player;
|
||||
@ -90,7 +89,7 @@ public class DynamicChunk extends Chunk {
|
||||
@Override
|
||||
public void tick(long time) {
|
||||
if (tickableMap.isEmpty()) return;
|
||||
Int2ObjectMaps.fastForEach(tickableMap, entry -> {
|
||||
tickableMap.int2ObjectEntrySet().fastForEach(entry -> {
|
||||
final int index = entry.getIntKey();
|
||||
final Block block = entry.getValue();
|
||||
final BlockHandler handler = block.handler();
|
||||
|
Loading…
Reference in New Issue
Block a user