From 027a7006ff08681d423ab96c7a9ec278a5ee37c1 Mon Sep 17 00:00:00 2001 From: CovertJaguar Date: Mon, 8 Apr 2013 16:29:42 -0700 Subject: [PATCH] Emerald Pipes should remember their state better --- .../transport/pipes/PipeItemsEmerald.java | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/common/buildcraft/transport/pipes/PipeItemsEmerald.java b/common/buildcraft/transport/pipes/PipeItemsEmerald.java index aa66ca14..f2d5f671 100644 --- a/common/buildcraft/transport/pipes/PipeItemsEmerald.java +++ b/common/buildcraft/transport/pipes/PipeItemsEmerald.java @@ -193,15 +193,17 @@ public class PipeItemsEmerald extends PipeItemsWood implements ISpecialInventory /* SAVING & LOADING */ @Override - public void readFromNBT(NBTTagCompound nbttagcompound) { - super.readFromNBT(nbttagcompound); - filters.readFromNBT(nbttagcompound); + public void readFromNBT(NBTTagCompound nbt) { + super.readFromNBT(nbt); + filters.readFromNBT(nbt); + currentFilter = nbt.getInteger("currentFilter"); } @Override - public void writeToNBT(NBTTagCompound nbttagcompound) { - super.writeToNBT(nbttagcompound); - filters.writeToNBT(nbttagcompound); + public void writeToNBT(NBTTagCompound nbt) { + super.writeToNBT(nbt); + filters.writeToNBT(nbt); + nbt.setInteger("currentFilter", currentFilter); } // ICLIENTSTATE