Removed Tile#bc(), use Tile.build instead

This commit is contained in:
Anuken
2020-12-07 11:44:57 -05:00
parent 5d4b8a43e3
commit 25125f5a9b
18 changed files with 42 additions and 44 deletions
+4 -2
View File
@@ -39,6 +39,8 @@ import mindustry.world.meta.*;
import java.lang.reflect.*;
import java.util.*;
import static mindustry.Vars.*;
@SuppressWarnings("unchecked")
public class ContentParser{
private static final boolean ignoreUnknownFields = true;
@@ -250,8 +252,8 @@ public class ContentParser{
readFields(block, value, true);
if(block.size > ConstructBlock.maxSize){
throw new IllegalArgumentException("Blocks cannot be larger than " + ConstructBlock.maxSize);
if(block.size > maxBlockSize){
throw new IllegalArgumentException("Blocks cannot be larger than " + maxBlockSize);
}
//make block visible by default if there are requirements and no visibility set