mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 23:47:59 +01:00
Ooops
This commit is contained in:
parent
98f645b344
commit
4abc6dd9eb
@ -58,12 +58,13 @@ public class DynamicChunk extends Chunk {
|
|||||||
final NBTCompound nbt = block.nbt();
|
final NBTCompound nbt = block.nbt();
|
||||||
if (handler != null || nbt != null) {
|
if (handler != null || nbt != null) {
|
||||||
this.entries.put(index, block);
|
this.entries.put(index, block);
|
||||||
// Block tick
|
|
||||||
if (handler != null && handler.isTickable()) {
|
|
||||||
this.tickableMap.put(index, block);
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
this.entries.remove(index);
|
this.entries.remove(index);
|
||||||
|
}
|
||||||
|
// Block tick
|
||||||
|
if (handler != null && handler.isTickable()) {
|
||||||
|
this.tickableMap.put(index, block);
|
||||||
|
} else {
|
||||||
this.tickableMap.remove(index);
|
this.tickableMap.remove(index);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user