Merge pull request #525 from aznhe21/patch-pipes-refresh

Pipes should not refresh.
This commit is contained in:
SirSengir 2013-01-03 05:19:44 -08:00
commit 0bb128acfd

View file

@ -22,6 +22,7 @@ import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.network.packet.Packet;
import net.minecraft.tileentity.TileEntity;
import net.minecraft.world.World;
import net.minecraftforge.common.ForgeDirection;
import net.minecraftforge.liquids.ILiquidTank;
import net.minecraftforge.liquids.ITankContainer;
@ -662,4 +663,9 @@ public class TileGenericPipe extends TileEntity implements IPowerReceptor, ITank
else
return null;
}
@Override
public boolean shouldRefresh(int oldID, int newID, int oldMeta, int newMeta, World world, int x, int y, int z) {
return oldID != newID;
}
}