Fix FluidRegsitry.registerFluid
FluidRegistry: ```java static BiMap<String, Fluid> fluids = HashBiMap.create(); static BiMap<Fluid, Integer> fluidIDs = HashBiMap.create(); ... public static boolean registerFluid(Fluid fluid) { if (fluidIDs.containsKey(fluid.getName())) ^^^^^^^ ``` There is definitely should be fluids instead fluidIDs. This mistake broke many mods.
This commit is contained in:
parent
02ebc9ca21
commit
a42cf1ae37
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ public abstract class FluidRegistry
|
|||
*/
|
||||
public static boolean registerFluid(Fluid fluid)
|
||||
{
|
||||
if (fluidIDs.containsKey(fluid.getName()))
|
||||
if (fluids.containsKey(fluid.getName()))
|
||||
{
|
||||
FMLLog.bigWarning("Duplicate registration attempt for fluid %s (type %s) has occurred. This is not a problem itself, but subsequent failed FluidStacks might be a result if not handled properly", fluid.getName(), fluid.getClass().getName());
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue