fixed condition for slot removal

This commit is contained in:
SpaceToad 2014-04-27 16:29:09 +02:00
parent 8c16501ee5
commit 5fe74fe34b

View file

@ -239,20 +239,18 @@ public class BptBuilderBlueprint extends BptBuilderBase {
builtLocations.add(new BlockIndex(slot.x, builtLocations.add(new BlockIndex(slot.x,
slot.y, slot.z)); slot.y, slot.z));
return slot; return slot;
}
} else { } else {
// the block is not soft anymore, we can't build // the block is not soft anymore, we can't build
// here. // here. Forget about it.
// forget about it.
iterator.remove(); iterator.remove();
} }
}
} else { } else {
iterator.remove(); iterator.remove();
} }
} else { } else {
iterator.remove(); iterator.remove();
} }
} catch (Throwable t) { } catch (Throwable t) {
// Defensive code against errors in implementers // Defensive code against errors in implementers
t.printStackTrace(); t.printStackTrace();