mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-10-26 14:24:40 +00:00
This commit is contained in:
1 parent
a82c7ddb86
commit
7317ae129c
1 file changed
+7
-1
@@ -151,7 +151,13 @@ public class ConduitTank implements IFluidTank {
|
||||
}
|
||||
|
||||
public boolean containsValidLiquid() {
|
||||
return fluid != null && FluidRegistry.getFluidName(fluid) != null;
|
||||
if(fluid != null) {
|
||||
String name = FluidRegistry.getFluidName(fluid);
|
||||
if(name != null && !name.isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public NBTTagCompound writeToNBT(NBTTagCompound nbt) {
|
||||
|
||||
Reference in new issue
Block a user