From dcaf1d12a9b7e0adefd27ad3038302c8752b9d66 Mon Sep 17 00:00:00 2001 From: btwonion Date: Sun, 20 Oct 2024 14:37:10 +0200 Subject: [PATCH] fix LivingEntityMixin --- build.gradle.kts | 2 +- changelog.md | 4 +--- .../java/dev/nyon/telekinesis/mixins/LivingEntityMixin.java | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index 2d66786..1e6aba0 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -14,7 +14,7 @@ plugins { } val beta: Int? = null // Pattern is '1.0.0-beta1-1.20.6-pre.2' -val featureVersion = "3.0.6${if (beta != null) "-beta$beta" else ""}" +val featureVersion = "3.0.7${if (beta != null) "-beta$beta" else ""}" val mcVersion = property("mcVersion")!!.toString() val mcVersionRange = property("mcVersionRange")!!.toString() version = "$featureVersion-$mcVersion" diff --git a/changelog.md b/changelog.md index 175b59d..e4e2dd2 100644 --- a/changelog.md +++ b/changelog.md @@ -1,3 +1 @@ -- add support for 1.21.2 -- update kotlin and klf to 2.0.21 -- do not require yacl anymore \ No newline at end of file +- fix LivingEntityMixin for <1.21.2 \ No newline at end of file diff --git a/src/main/java/dev/nyon/telekinesis/mixins/LivingEntityMixin.java b/src/main/java/dev/nyon/telekinesis/mixins/LivingEntityMixin.java index e1ffdf6..50d0a2d 100644 --- a/src/main/java/dev/nyon/telekinesis/mixins/LivingEntityMixin.java +++ b/src/main/java/dev/nyon/telekinesis/mixins/LivingEntityMixin.java @@ -67,7 +67,7 @@ private Consumer replaceConsumer(LootParams params, Consumer=1.21.2 {*/ /*"dropFromLootTable(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/world/damagesource/DamageSource;Z)V" *//*?} else {*/ "dropFromLootTable"/*?}*/, at = @At( value = "INVOKE", target = "Lnet/minecraft/world/level/storage/loot/LootTable;getRandomItems(Lnet/minecraft/world/level/storage/loot/LootParams;JLjava/util/function/Consumer;)V"