mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 16:27:47 +00: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");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user