From 8304e05c6bb7901abc49cc5639ff3064cb61f387 Mon Sep 17 00:00:00 2001 From: HellFirePvP <01ecs01m> Date: Sat, 31 Oct 2015 02:11:50 +0100 Subject: [PATCH] - Node Destruction fix --- .../common/node/GrowingNodeBehavior.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/main/java/makeo/gadomancy/common/node/GrowingNodeBehavior.java b/src/main/java/makeo/gadomancy/common/node/GrowingNodeBehavior.java index 26bf162..3442822 100644 --- a/src/main/java/makeo/gadomancy/common/node/GrowingNodeBehavior.java +++ b/src/main/java/makeo/gadomancy/common/node/GrowingNodeBehavior.java @@ -202,21 +202,27 @@ public class GrowingNodeBehavior { fixedNode.markDirty(); needUpdate = true; } else { + if(baseAspects.size() <= 1) { + int x = fixedNode.xCoord; + int y = fixedNode.yCoord; + int z = fixedNode.zCoord; + removeFixedNode(x, y, z); + needUpdate = true; + } baseAspects.remove(a); currentAspects.remove(a); + return needUpdate; + } + } else { + if(baseAspects.size() <= 1) { int x = fixedNode.xCoord; int y = fixedNode.yCoord; int z = fixedNode.zCoord; removeFixedNode(x, y, z); - return needUpdate; + needUpdate = true; } - } else { baseAspects.remove(a); currentAspects.remove(a); - int x = fixedNode.xCoord; - int y = fixedNode.yCoord; - int z = fixedNode.zCoord; - removeFixedNode(x, y, z); return needUpdate; } }