mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Legacy Liquid Load Fix
nbt.getString("FluidName") no longer returns null, it returns an empty string.
This patch allows legacy liquids to be resolved once again.
This commit is contained in:
1 parent
5131aed7bd
commit
22609b1d54
1 file changed
+2
-2
@@ -2,7 +2,7 @@
|
||||
package net.minecraftforge.fluids;
|
||||
|
||||
import java.util.Locale;
|
||||
|
||||
import com.google.common.base.Strings;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
@@ -60,7 +60,7 @@ public class FluidStack
|
||||
return null;
|
||||
}
|
||||
String fluidName = nbt.getString("FluidName");
|
||||
if (fluidName == null)
|
||||
if (Strings.isNullOrEmpty(fluidName))
|
||||
{
|
||||
fluidName = nbt.hasKey("LiquidName") ? nbt.getString("LiquidName").toLowerCase(Locale.ENGLISH) : null;
|
||||
fluidName = Fluid.convertLegacyName(fluidName);
|
||||
|
||||
Reference in new issue
Block a user