mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-20 03:59:45 +00:00
1 parent
c54b7c40bb
commit
a9fbfbbe74
2 files changed
+4
-2
No files matched your search
@@ -317,6 +317,8 @@ public enum Fluids {
|
||||
// Thermal Expansion
|
||||
COAL, PYROTHEUM;
|
||||
|
||||
public static final Fluids[] forestryFluids = {ETHANOL, BIOMASS, GLASS, HONEY, LEGACY_HONEY, ICE, JUICE, MILK, SEEDOIL, SHORT_MEAD};
|
||||
|
||||
private final String tag;
|
||||
private final int density, viscosity;
|
||||
private final Color color;
|
||||
|
||||
@@ -82,7 +82,7 @@ public class PluginFluids extends ForestryPlugin {
|
||||
|
||||
@Override
|
||||
public void preInit() {
|
||||
for (Fluids fluidType : Fluids.values()) {
|
||||
for (Fluids fluidType : Fluids.forestryFluids) {
|
||||
createFluid(fluidType);
|
||||
}
|
||||
MinecraftForge.EVENT_BUS.register(getTextureHook());
|
||||
@@ -145,7 +145,7 @@ public class PluginFluids extends ForestryPlugin {
|
||||
|
||||
@Override
|
||||
public void postInit() {
|
||||
for (Fluids fluidType : Fluids.values()) {
|
||||
for (Fluids fluidType : Fluids.forestryFluids) {
|
||||
if (fluidType.getFluid() == null)
|
||||
throw new MissingFluidException(fluidType.getTag());
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user