mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 14:32:06 -08:00
Editor fixes
This commit is contained in:
parent
90505a8e19
commit
ea2adbd63b
5 changed files with 42 additions and 5 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue