Fixed load map limit

This commit is contained in:
Anuken 2022-05-06 14:14:10 -04:00
parent 5ef423c185
commit 7540b1c10a

View File

@ -99,6 +99,10 @@ public class BlockRenderer{
updateDarkness();
});
Events.run(Trigger.newGame, () -> {
updateDarkness();
});
Events.on(TilePreChangeEvent.class, event -> {
if(indexBlock(event.tile)) blockTree.remove(event.tile);
if(indexFloor(event.tile)) floorTree.remove(event.tile);