Skip to content

Commit

Permalink
Update to 1.20.2 (#228)
Browse files Browse the repository at this point in the history
Co-authored-by: Potatoboy9999 <[email protected]>
  • Loading branch information
Wesley1808 and PotatoPresident authored Sep 26, 2023
1 parent badd764 commit eb00277
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ kotlin.code.style=official
org.gradle.jvmargs=-Xmx1G

# Mod Properties
modVersion = 1.2.8
modVersion = 1.2.9
mavenGroup = com.github.quiltservertools
modId = ledger
modName = Ledger
Expand Down
10 changes: 5 additions & 5 deletions libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[versions]
minecraft = "1.20"
yarn-mappings = "1.20+build.1"
fabric-loader = "0.14.21"
minecraft = "1.20.2"
yarn-mappings = "1.20.2+build.1"
fabric-loader = "0.14.22"

fabric-api = "0.83.0+1.20"
fabric-api = "0.89.1+1.20.2"

# Kotlin
kotlin = "1.9.4"
# Also modrinth version in gradle.properties
fabric-kotlin = "1.9.4+kotlin.1.8.21"

fabric-permissions = "0.2-SNAPSHOT"
translations = "2.0.0-beta.2+1.19.4-pre2"
translations = "2.1.0+1.20.2-rc2"

exposed = "0.38.2"
sqlite-jdbc = "3.36.0.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ public abstract class BucketDispenserBehaviorMixin extends ItemDispenserBehavior
method = "dispenseSilently(Lnet/minecraft/util/math/BlockPointer;Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/block/FluidDrainable;tryDrainFluid(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;",
target = "Lnet/minecraft/block/FluidDrainable;tryDrainFluid(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;",
shift = At.Shift.AFTER
)
)
private void logFluidPickup(BlockPointer pointer, ItemStack stack, CallbackInfoReturnable<ItemStack> cir, @Local ItemStack itemStack, @Local BlockPos pos, @Local BlockState blockState) {
var world = pointer.getWorld();
var world = pointer.world();
if (!itemStack.isEmpty()) {
if (blockState.isLiquid() || blockState.isOf(Blocks.POWDER_SNOW)) {
BlockBreakCallback.EVENT.invoker().breakBlock(world, pos, blockState, world.getBlockEntity(pos), Sources.REDSTONE);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ private static void logWaterDrainNonSource(BlockPos actorBlockPos, World world,
}

@Inject(method = "method_49829", at = @At(value = "INVOKE",
target = "Lnet/minecraft/block/FluidDrainable;tryDrainFluid(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;"))
target = "Lnet/minecraft/block/FluidDrainable;tryDrainFluid(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;"))
private static void logWaterDrainSource(BlockPos actorBlockPos, World world, BlockPos pos, CallbackInfoReturnable<Boolean> cir) {
BlockBreakCallback.EVENT.invoker().breakBlock(world, pos, world.getBlockState(pos), null, Sources.SPONGE);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"fabricloader": "*",
"fabric": ">=${fabricApi}",
"fabric-language-kotlin": ">=${fabricKotlin}",
"minecraft": ">=1.20"
"minecraft": ">=1.20.2"
},
"breaks": {
"cardboard": "*"
Expand Down

0 comments on commit eb00277

Please sign in to comment.