Fixed editor crash

This commit is contained in:
Anuken
2021-09-09 09:59:35 -04:00
parent 9e737cd3fe
commit 1a686c44a1
2 changed files with 3 additions and 1 deletions

View File

@@ -50,10 +50,12 @@ public class BlockIndexer{
clearFlags();
Events.on(TilePreChangeEvent.class, event -> {
if(state.isEditor()) return;
removeIndex(event.tile);
});
Events.on(TileChangeEvent.class, event -> {
if(state.isEditor()) return;
addIndex(event.tile);
});