Emerald Pipes should remember their state better

This commit is contained in:
CovertJaguar 2013-04-08 16:29:42 -07:00
parent b78bee2d9f
commit 027a7006ff

View file

@ -193,15 +193,17 @@ public class PipeItemsEmerald extends PipeItemsWood implements ISpecialInventory
/* SAVING & LOADING */ /* SAVING & LOADING */
@Override @Override
public void readFromNBT(NBTTagCompound nbttagcompound) { public void readFromNBT(NBTTagCompound nbt) {
super.readFromNBT(nbttagcompound); super.readFromNBT(nbt);
filters.readFromNBT(nbttagcompound); filters.readFromNBT(nbt);
currentFilter = nbt.getInteger("currentFilter");
} }
@Override @Override
public void writeToNBT(NBTTagCompound nbttagcompound) { public void writeToNBT(NBTTagCompound nbt) {
super.writeToNBT(nbttagcompound); super.writeToNBT(nbt);
filters.writeToNBT(nbttagcompound); filters.writeToNBT(nbt);
nbt.setInteger("currentFilter", currentFilter);
} }
// ICLIENTSTATE // ICLIENTSTATE