From 849943a0dee71ff36e4e861ed131ceeda8606cb2 Mon Sep 17 00:00:00 2001 From: Anuken Date: Mon, 7 Dec 2020 18:57:59 -0500 Subject: [PATCH] Increased surge smelter item capacity --- core/src/mindustry/ai/types/LogicAI.java | 2 +- core/src/mindustry/content/Blocks.java | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/ai/types/LogicAI.java b/core/src/mindustry/ai/types/LogicAI.java index d2f759150b..3384af0b2f 100644 --- a/core/src/mindustry/ai/types/LogicAI.java +++ b/core/src/mindustry/ai/types/LogicAI.java @@ -103,7 +103,7 @@ public class LogicAI extends AIController{ //look where moving if there's nothing to aim at if(!shoot){ unit.lookAt(unit.prefRotation()); - }else if(unit.hasWeapons()){ //if there is, look at the object + }else if(unit.hasWeapons() && unit.mounts.length > 0){ //if there is, look at the object unit.lookAt(unit.mounts[0].aimX, unit.mounts[0].aimY); } } diff --git a/core/src/mindustry/content/Blocks.java b/core/src/mindustry/content/Blocks.java index 4f6d8128ec..874ca975b5 100644 --- a/core/src/mindustry/content/Blocks.java +++ b/core/src/mindustry/content/Blocks.java @@ -614,6 +614,7 @@ public class Blocks implements ContentList{ craftTime = 75f; size = 3; hasPower = true; + itemCapacity = 20; consumes.power(4f); consumes.items(with(Items.copper, 3, Items.lead, 4, Items.titanium, 2, Items.silicon, 3));