Fix corner case where collidables are not cleared after last removal

This commit is contained in:
tterrag1098 committed 2015-08-29 20:10:53 -04:00
1 parent f3af999ef2
commit 23464f49c1
1 file changed
+2 -1
@@ -81,7 +81,7 @@ public class TileConduitBundle extends TileEntityEio implements IConduitBundle {
public void dirty() {
conduitsDirty = true;
collidablesDirty = true;
}
}
@Override
public boolean shouldRenderInPass(int arg0) {
@@ -115,6 +115,7 @@ public class TileConduitBundle extends TileEntityEio implements IConduitBundle {
short nbtVersion = nbtRoot.getShort("nbtVersion");
conduits.clear();
cachedCollidables.clear();
NBTTagList conduitTags = (NBTTagList) nbtRoot.getTag("conduits");
if(conduitTags != null) {
for (int i = 0; i < conduitTags.tagCount(); i++) {