Editor fixes

This commit is contained in:
Anuken 2020-05-04 10:57:57 -04:00
parent 90505a8e19
commit ea2adbd63b
5 changed files with 42 additions and 5 deletions

View file

@ -269,6 +269,20 @@ public class ApplicationTests{
assertTrue(tank.entity.liquids().current() == Liquids.water, "Tank has no water");
}
@Test
void blockOverlapRemoved(){
world.loadMap(testMap);
state.set(State.playing);
//edge block
world.tile(1, 1).setBlock(Blocks.coreShard);
assertEquals(Blocks.coreShard, world.tile(0, 0).block());
//this should overwrite the block
world.tile(2, 2).setBlock(Blocks.coreShard);
assertEquals(Blocks.air, world.tile(0, 0).block());
}
@Test
void conveyorCrash(){
world.loadMap(testMap);