Fixed a crash
This commit is contained in:
@@ -160,7 +160,10 @@ public class BaseAI{
|
|||||||
|
|
||||||
private void tryWalls(){
|
private void tryWalls(){
|
||||||
Block wall = Blocks.copperWall;
|
Block wall = Blocks.copperWall;
|
||||||
Tile spawn = state.rules.defaultTeam.core() != null ? state.rules.defaultTeam.core().tile : data.team.core().tile;
|
Building spawnt = state.rules.defaultTeam.core() != null ? state.rules.defaultTeam.core() : data.team.core();
|
||||||
|
Tile spawn = spawnt == null ? null : spawnt.tile;
|
||||||
|
|
||||||
|
if(spawn == null) return;
|
||||||
|
|
||||||
for(int wx = lastX; wx <= lastX + lastW; wx++){
|
for(int wx = lastX; wx <= lastX + lastW; wx++){
|
||||||
for(int wy = lastY; wy <= lastY + lastH; wy++){
|
for(int wy = lastY; wy <= lastY + lastH; wy++){
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
org.gradle.daemon=true
|
org.gradle.daemon=true
|
||||||
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
org.gradle.jvmargs=-Xms256m -Xmx1024m
|
||||||
archash=2ac66690875edbfa17847a3ef61b13a3e2006fe2
|
archash=c899ca692e409237ff08631845cf0ea8b9392bb5
|
||||||
|
|||||||
Reference in New Issue
Block a user