mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-02 20:33:50 +07:00
Fixed tests not compiling
This commit is contained in:
parent
bd4f3c039c
commit
45d8188ba4
@ -281,6 +281,7 @@ project(":tests"){
|
||||
testImplementation "org.junit.jupiter:junit-jupiter-api:5.3.1"
|
||||
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:5.3.1"
|
||||
compile arcModule("backends:backend-headless")
|
||||
compile arcModule("natives:natives-box2d-desktop")
|
||||
}
|
||||
|
||||
test{
|
||||
|
@ -237,7 +237,7 @@ public class ApplicationTests{
|
||||
state.set(State.playing);
|
||||
|
||||
world.tile(0, 0).setBlock(Blocks.liquidSource);
|
||||
world.tile(0, 0).configureAny(Liquids.water);
|
||||
world.tile(0, 0).entity.configureAny(Liquids.water);
|
||||
|
||||
world.tile(2, 1).setBlock(Blocks.liquidTank);
|
||||
|
||||
@ -255,7 +255,7 @@ public class ApplicationTests{
|
||||
Tile source = world.rawTile(0, 0), tank = world.rawTile(1, 4), junction = world.rawTile(0, 1), conduit = world.rawTile(0, 2);
|
||||
|
||||
source.setBlock(Blocks.liquidSource);
|
||||
source.configureAny(Liquids.water);
|
||||
source.entity.configureAny(Liquids.water);
|
||||
|
||||
junction.setBlock(Blocks.liquidJunction);
|
||||
|
||||
@ -353,7 +353,7 @@ public class ApplicationTests{
|
||||
state.set(State.playing);
|
||||
int length = 128;
|
||||
world.tile(0, 0).setBlock(Blocks.itemSource);
|
||||
world.tile(0, 0).configureAny(Items.copper);
|
||||
world.tile(0, 0).entity.configureAny(Items.copper);
|
||||
|
||||
Array<Tilec> entities = Array.with(world.tile(0, 0).entity);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user