A exception that was already being caught.

This commit is contained in:
psxlover 2012-05-27 01:56:33 +03:00
parent eb44f8fab1
commit f445024282

View file

@ -81,7 +81,10 @@ public class TileGenericPipe extends TileEntity implements IPowerReceptor,
public void readFromNBT(NBTTagCompound nbttagcompound) {
super.readFromNBT(nbttagcompound);
pipe = BlockGenericPipe.createPipe(nbttagcompound.getInteger("pipeId"));
int key = nbttagcompound.getInteger("pipeId");
if (key > 0) {
pipe = BlockGenericPipe.createPipe(key);
}
if (pipe != null) {
pipe.setTile(this);