A exception that was already being caught.
This commit is contained in:
parent
eb44f8fab1
commit
f445024282
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue