Increased max block size
This commit is contained in:
@@ -26,6 +26,7 @@ import mindustry.gen.*;
|
|||||||
import mindustry.mod.Mods.*;
|
import mindustry.mod.Mods.*;
|
||||||
import mindustry.type.*;
|
import mindustry.type.*;
|
||||||
import mindustry.world.*;
|
import mindustry.world.*;
|
||||||
|
import mindustry.world.blocks.*;
|
||||||
import mindustry.world.consumers.*;
|
import mindustry.world.consumers.*;
|
||||||
import mindustry.world.meta.*;
|
import mindustry.world.meta.*;
|
||||||
|
|
||||||
@@ -245,8 +246,8 @@ public class ContentParser{
|
|||||||
|
|
||||||
readFields(block, value, true);
|
readFields(block, value, true);
|
||||||
|
|
||||||
if(block.size > 8){
|
if(block.size > BuildBlock.maxSize){
|
||||||
throw new IllegalArgumentException("Blocks cannot be larger than 8x8.");
|
throw new IllegalArgumentException("Blocks cannot be larger than " + BuildBlock.maxSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
//add research tech node
|
//add research tech node
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ import mindustry.world.modules.*;
|
|||||||
import static mindustry.Vars.*;
|
import static mindustry.Vars.*;
|
||||||
|
|
||||||
public class BuildBlock extends Block{
|
public class BuildBlock extends Block{
|
||||||
public static final int maxSize = 9;
|
public static final int maxSize = 16;
|
||||||
private static final BuildBlock[] buildBlocks = new BuildBlock[maxSize];
|
private static final BuildBlock[] buildBlocks = new BuildBlock[maxSize];
|
||||||
|
|
||||||
private static long lastTime = 0;
|
private static long lastTime = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user