mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 16:54:22 +00:00
Possible NPE if the liquid isn't in the LD
https://github.com/BuildCraft/BuildCraft/issues/787
This commit is contained in:
1 parent
4cd70f5e98
commit
a88692a0f2
1 file changed
+5
-1
@@ -54,7 +54,11 @@ public class LiquidStack
|
||||
nbt.setInteger("Amount", amount);
|
||||
nbt.setShort("Id", (short)itemID);
|
||||
nbt.setShort("Meta", (short)itemMeta);
|
||||
nbt.setString("LiquidName", LiquidDictionary.findLiquidName(this));
|
||||
String name = LiquidDictionary.findLiquidName(this);
|
||||
if(name != null)
|
||||
{
|
||||
nbt.setString("LiquidName", name);
|
||||
}
|
||||
if (extra != null)
|
||||
{
|
||||
nbt.setTag("extra", extra);
|
||||
|
||||
Reference in new issue
Block a user