mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-20 04:09:51 +00:00
Adjusts OreDictionary to prevent invalid registrations.
Getting Ore Names for a non-existent ore will no longer automatically add that Name to the list nor generate an ID. Tweaks a warning message in the FluidContainerRegistry. No functionality change. Signed-off-by: King Lemming <[email protected]>
This commit is contained in:
1 parent
277495c8e4
commit
3cd7f6bd87
2 files changed
+8
-3
No files matched your search
@@ -171,7 +171,7 @@ public abstract class FluidContainerRegistry
|
||||
}
|
||||
if (data.fluid == null || data.fluid.getFluid() == null)
|
||||
{
|
||||
FMLLog.bigWarning("Invalid registration attempt for a fluid container item %s (type %s) has occurred. The registration has been denied to prevent crashes. The mod responsible for the registration needs to correct this.", data.filledContainer.getItem().getUnlocalizedName(data.filledContainer));
|
||||
FMLLog.bigWarning("Invalid registration attempt for a fluid container item %s has occurred. The registration has been denied to prevent crashes. The mod responsible for the registration needs to correct this.", data.filledContainer.getItem().getUnlocalizedName(data.filledContainer));
|
||||
return false;
|
||||
}
|
||||
containerFluidMap.put(new ContainerKey(data.filledContainer), data);
|
||||
|
||||
Reference in new issue
Block a user