mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-12 16:57:52 +07:00
Looking into test failure
This commit is contained in:
@ -140,7 +140,7 @@ public class LogicBlock extends Block{
|
|||||||
|
|
||||||
int bytelen = stream.readInt();
|
int bytelen = stream.readInt();
|
||||||
|
|
||||||
//if(bytelen > maxByteLen) throw new RuntimeException("Malformed logic data! Length: " + bytelen);
|
if(bytelen > maxByteLen) throw new RuntimeException("Malformed logic data! Length: " + bytelen);
|
||||||
|
|
||||||
byte[] bytes = new byte[bytelen];
|
byte[] bytes = new byte[bytelen];
|
||||||
stream.readFully(bytes);
|
stream.readFully(bytes);
|
||||||
@ -202,7 +202,7 @@ public class LogicBlock extends Block{
|
|||||||
int version = stream.read();
|
int version = stream.read();
|
||||||
|
|
||||||
int bytelen = stream.readInt();
|
int bytelen = stream.readInt();
|
||||||
//if(bytelen > maxByteLen) throw new RuntimeException("Malformed logic data! Length: " + bytelen);
|
if(bytelen > maxByteLen) throw new RuntimeException("Malformed logic data! Length: " + bytelen);
|
||||||
byte[] bytes = new byte[bytelen];
|
byte[] bytes = new byte[bytelen];
|
||||||
stream.readFully(bytes);
|
stream.readFully(bytes);
|
||||||
|
|
||||||
|
@ -494,10 +494,12 @@ public class ApplicationTests{
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
void buildingOverlap(){
|
void buildingOverlap(){
|
||||||
|
Log.info("Testing buildingOverlap, initialized = @", initialized);
|
||||||
|
|
||||||
initBuilding();
|
initBuilding();
|
||||||
|
|
||||||
Builderc d1 = (Builderc)UnitTypes.poly.create(Team.sharded);
|
Unit d1 = UnitTypes.poly.create(Team.sharded);
|
||||||
Builderc d2 = (Builderc)UnitTypes.poly.create(Team.sharded);
|
Unit d2 = UnitTypes.poly.create(Team.sharded);
|
||||||
|
|
||||||
//infinite build range
|
//infinite build range
|
||||||
state.rules.editor = true;
|
state.rules.editor = true;
|
||||||
|
Reference in New Issue
Block a user