From 4abc6dd9eb574f45d1e43994366e148bb97d0ed9 Mon Sep 17 00:00:00 2001 From: TheMode Date: Sat, 10 Jul 2021 20:30:35 +0200 Subject: [PATCH] Ooops --- .../java/net/minestom/server/instance/DynamicChunk.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/main/java/net/minestom/server/instance/DynamicChunk.java b/src/main/java/net/minestom/server/instance/DynamicChunk.java index 724fe19f0..bd727ea69 100644 --- a/src/main/java/net/minestom/server/instance/DynamicChunk.java +++ b/src/main/java/net/minestom/server/instance/DynamicChunk.java @@ -58,12 +58,13 @@ public class DynamicChunk extends Chunk { final NBTCompound nbt = block.nbt(); if (handler != null || nbt != null) { this.entries.put(index, block); - // Block tick - if (handler != null && handler.isTickable()) { - this.tickableMap.put(index, block); - } } else { this.entries.remove(index); + } + // Block tick + if (handler != null && handler.isTickable()) { + this.tickableMap.put(index, block); + } else { this.tickableMap.remove(index); } }