- Node Destruction fix

This commit is contained in:
HellFirePvP committed 2015-10-31 02:11:50 +01:00
1 parent 86c43f4549
commit 8304e05c6b
1 file changed
+12 -6
@@ -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;
}
}