Skip to content

Commit

Permalink
Add NeoForge/Mojang names for redirects in NaturalSpawnerMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
jpenilla committed Sep 30, 2024
1 parent 340ac4e commit 05ba706
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ static Biome getRoughBiome(final BlockPos arg, final ChunkAccess arg2) {
* @author Spottedleaf
*/
@Redirect(
method = "method_27819",
method = {"method_27819", "lambda$createState$2"}, // Fabric, NeoForge
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/world/level/NaturalSpawner;getRoughBiome(Lnet/minecraft/core/BlockPos;Lnet/minecraft/world/level/chunk/ChunkAccess;)Lnet/minecraft/world/level/biome/Biome;"
Expand All @@ -42,7 +42,7 @@ private static Biome delayRoughBiome(final BlockPos pos, final ChunkAccess chunk
* @author Spottedleaf
*/
@Redirect(
method = "method_27819",
method = {"method_27819", "lambda$createState$2"}, // Fabric, NeoForge
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/world/level/biome/Biome;getMobSettings()Lnet/minecraft/world/level/biome/MobSpawnSettings;"
Expand All @@ -57,7 +57,7 @@ private static MobSpawnSettings delayMobSpawnSettings(final Biome biome) {
* @author Spottedleaf
*/
@Redirect(
method = "method_27819",
method = {"method_27819", "lambda$createState$2"}, // Fabric, NeoForge
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/world/level/biome/MobSpawnSettings;getMobSpawnCost(Lnet/minecraft/world/entity/EntityType;)Lnet/minecraft/world/level/biome/MobSpawnSettings$MobSpawnCost;"
Expand Down

0 comments on commit 05ba706

Please sign in to comment.