Editor fixes
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user