thick stuff its not a confirmed bug

This commit is contained in:
gnembon committed 2023-01-24 22:10:12 +01:00
1 parent 1a88ac35b5
commit abe1d070de
2 files changed
+8 -7

No files matched your search

+6 -5
View File
@@ -1045,13 +1045,14 @@ public class CarpetSettings
public static int sculkSensorRange = 8;
public enum FungusFixMode {
FALSE, VANILLA, ALL;
FALSE, RANDOM, ALL;
}
// refers to "[MC-215169](https://bugs.mojang.com/browse/MC-215169)." - unconfirmed yet that its a java bug
@Rule(
desc = "Allows to grow nether trees with 3x3 base with bonemeal",
extra = {"Setting to 'all' will make all nether fungi grow into 3x3 trees", "Setting to 'vanilla' will make 6% of all nether fungi grow into 3x3 trees", "(this being consistent with worldgen)", "Fixes [MC-215169](https://bugs.mojang.com/browse/MC-215169)."},
category = {SURVIVAL, BUGFIX}
desc = "Allows to grow nether fungi with 3x3 base with bonemeal",
extra = {"Setting to 'all' will make all nether fungi grow into 3x3 trees", "Setting to 'random' will make 6% of all nether fungi grow into 3x3 trees", "(this being consistent with worldgen)"},
category = {SURVIVAL, FEATURE}
)
public static FungusFixMode thickHugeFungusGrowthFix = FungusFixMode.FALSE;
public static FungusFixMode thickFungusGrowth = FungusFixMode.FALSE;
}
@@ -17,8 +17,8 @@ public class HugeFungusFeatureMixin {
private void mixin(Args args) {
boolean natural = !((HugeFungusConfiguration) args.get(2)).planted;
args.set(5, natural && ((boolean) args.get(5)) ||
!natural && (CarpetSettings.thickHugeFungusGrowthFix.equals(ALL) ||
CarpetSettings.thickHugeFungusGrowthFix.equals(VANILLA) && ((RandomSource) args.get(1)).nextFloat() < 0.06F)
!natural && (CarpetSettings.thickFungusGrowth.equals(ALL) ||
CarpetSettings.thickFungusGrowth.equals(RANDOM) && ((RandomSource) args.get(1)).nextFloat() < 0.06F)
);
}
}