Skip to content

Commit 5902a69

Browse files
committed
Merge branch 'master' into 1.20.1
# Conflicts: # gradle.properties
2 parents 28131bf + 72df0f8 commit 5902a69

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@ Put changelog here:
99
- Adds `SaveToggle` annotation
1010
- Moved all field annotations for config syncing to `EntrySyncData` for easier use
1111
- Fixed a small bug with `Locked When Synced` fields syncing instead of remaining stagnant
12-
- Added an additional tooltip to notify Server Operators and LAN Hosts when a config value will sync
13-
- Moved most packets from channels to `FabricPacket`s
12+
- Added a tooltip to notify Server Operators and LAN Hosts when a config value will sync
13+
- Converted most packets from channels to `FabricPacket`s
14+
- Improved compatibility of Overworld Biome API

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
minecraft_version=1.20.1
1616
quilt_mappings=1.20.1+build.23
1717
parchment_mappings=1.20.1:2023.09.03
18-
loader_version=0.15.1
18+
loader_version=0.15.2
1919

2020
# Mod Properties
2121
mod_version = 1.5.2
@@ -27,7 +27,7 @@
2727
fabric_api_version=0.91.0+1.20.1
2828
fabric_kotlin_version=1.10.16+kotlin.1.9.21
2929
# https://github.com/LlamaLad7/MixinExtras/releases
30-
mixin_extras_version=0.3.1
30+
mixin_extras_version=0.3.2
3131
toml4j_version=0.7.2
3232
jankson_version=1.2.3
3333

src/main/java/net/frozenblock/lib/item/mixin/bonemeal/BoneMealItemMixin.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public void useBonemeal(UseOnContext context, CallbackInfoReturnable<Interaction
4545
if (BonemealBehaviors.BONEMEAL_BEHAVIORS.get(state.getBlock()).bonemeal(context, level, blockPos, state, direction, horizontal) && !level.isClientSide) {
4646
context.getItemInHand().shrink(1);
4747
info.setReturnValue(InteractionResult.SUCCESS);
48-
info.cancel();
4948
} else {
5049
info.setReturnValue(InteractionResult.sidedSuccess(level.isClientSide));
5150
}

src/main/java/net/frozenblock/lib/worldgen/biome/mixin/OverworldBiomePresetMixin.java

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,21 +19,20 @@
1919
package net.frozenblock.lib.worldgen.biome.mixin;
2020

2121
import java.util.function.Function;
22+
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
2223
import net.frozenblock.lib.worldgen.biome.impl.OverworldBiomeData;
2324
import net.minecraft.resources.ResourceKey;
2425
import net.minecraft.world.level.biome.Biome;
2526
import net.minecraft.world.level.biome.Climate;
2627
import org.spongepowered.asm.mixin.Mixin;
2728
import org.spongepowered.asm.mixin.injection.At;
28-
import org.spongepowered.asm.mixin.injection.Inject;
29-
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
3029

3130

3231
@Mixin(targets = "net/minecraft/world/level/biome/MultiNoiseBiomeSourceParameterList$Preset$2", priority = 991)
3332
public class OverworldBiomePresetMixin {
3433

35-
@Inject(method = "apply", at = @At("RETURN"), cancellable = true)
36-
public <T> void apply(Function<ResourceKey<Biome>, T> function, CallbackInfoReturnable<Climate.ParameterList<T>> cir) {
37-
cir.setReturnValue(OverworldBiomeData.withModdedBiomeEntries(cir.getReturnValue(), function));
34+
@ModifyReturnValue(method = "apply", at = @At("RETURN"))
35+
private <T> Climate.ParameterList<T> apply(Climate.ParameterList<T> original, Function<ResourceKey<Biome>, T> function) {
36+
return OverworldBiomeData.withModdedBiomeEntries(original, function);
3837
}
3938
}

0 commit comments

Comments
 (0)