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);
});

View File

@ -629,7 +629,7 @@ public class UnitType extends UnlockableContent{
Draw.color(0, 0, 0, 0.4f);
float rad = 1.6f;
float size = Math.max(region.width, region.height) * Draw.scl;
Draw.rect(softShadowRegion, unit, size * rad * Draw.xscl, size * rad * Draw.yscl);
Draw.rect(softShadowRegion, unit, size * rad * Draw.xscl, size * rad * Draw.yscl, unit.rotation - 90);
Draw.color();
}