Emerald Pipes should remember their state better
This commit is contained in:
parent
b78bee2d9f
commit
027a7006ff
1 changed files with 8 additions and 6 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue