This commit is contained in:
Flow86 authored and Christian committed 2013-03-28 08:07:09 -04:00
1 parent 6fe6912456
commit 41ed59f424
1 file changed
+6 -7
@@ -48,16 +48,15 @@ public class LiquidStack
public void readFromNBT(NBTTagCompound nbt)
{
String liquidName = nbt.getString("LiquidName");
itemID = nbt.getShort("Id");
itemMeta = nbt.getShort("Meta");
if (liquidName != null)
{
LiquidStack liquid = LiquidDictionary.getCanonicalLiquid(liquidName);
itemID = liquid.itemID;
itemMeta = liquid.itemMeta;
}
else
{
itemID = nbt.getShort("Id");
itemMeta = nbt.getShort("Meta");
if(liquid != null) {
itemID = liquid.itemID;
itemMeta = liquid.itemMeta;
}
}
amount = nbt.getInteger("Amount");
}