mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-10-26 14:23:57 +00:00
Skip fluid block creation for pre-registered fluids that already have one
This commit is contained in:
1 file changed
+3
-2
@@ -71,8 +71,9 @@ public class PluginFluids extends ForestryPlugin {
|
||||
FluidRegistry.registerFluid(fluid);
|
||||
}
|
||||
|
||||
// Milk is pre-registered by another mod that gives it no block, so Forestry must not add one either.
|
||||
if (preRegistered && forestryFluid == Fluids.MILK) {
|
||||
// A pre-registered fluid keeps whatever block the mod that registered it chose: milk is deliberately left
|
||||
// blockless, and any fluid that already carries a block must not get a competing Forestry one.
|
||||
if (preRegistered && (forestryFluid == Fluids.MILK || forestryFluid.getBlock() != null)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user