Merge pull request #1297 from ShetiPhian/patch-1
Legacy Liquid Load Fix
This commit is contained in:
commit
98285e4df6
1 changed files with 2 additions and 2 deletions
|
@ -2,7 +2,7 @@
|
||||||
package net.minecraftforge.fluids;
|
package net.minecraftforge.fluids;
|
||||||
|
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
import com.google.common.base.Strings;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.nbt.NBTTagCompound;
|
import net.minecraft.nbt.NBTTagCompound;
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ public class FluidStack
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
String fluidName = nbt.getString("FluidName");
|
String fluidName = nbt.getString("FluidName");
|
||||||
if (fluidName == null)
|
if (Strings.isNullOrEmpty(fluidName))
|
||||||
{
|
{
|
||||||
fluidName = nbt.hasKey("LiquidName") ? nbt.getString("LiquidName").toLowerCase(Locale.ENGLISH) : null;
|
fluidName = nbt.hasKey("LiquidName") ? nbt.getString("LiquidName").toLowerCase(Locale.ENGLISH) : null;
|
||||||
fluidName = Fluid.convertLegacyName(fluidName);
|
fluidName = Fluid.convertLegacyName(fluidName);
|
||||||
|
|
Loading…
Reference in a new issue