mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-11 11:17:11 +07:00
Fixed editor crash
This commit is contained in:
parent
9e737cd3fe
commit
1a686c44a1
@ -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);
|
||||
});
|
||||
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user