mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-28 07:22:21 -08:00
Added block size error
This commit is contained in:
parent
74dc31b10a
commit
177cea5c5d
1 changed files with 4 additions and 0 deletions
|
|
@ -246,6 +246,10 @@ public class ContentParser{
|
|||
|
||||
readFields(block, value, true);
|
||||
|
||||
if(block.size > 8){
|
||||
throw new IllegalArgumentException("Blocks cannot be larger than 8x8.");
|
||||
}
|
||||
|
||||
//add research tech node
|
||||
if(research[0] != null){
|
||||
Block parent = find(ContentType.block, research[0]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue