Skip to content

Commit

Permalink
fix LivingEntityMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
btwonion committed Oct 20, 2024
1 parent 215987b commit dcaf1d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 1 addition & 3 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
- add support for 1.21.2
- update kotlin and klf to 2.0.21
- do not require yacl anymore
- fix LivingEntityMixin for <1.21.2
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private Consumer<ItemStack> replaceConsumer(LootParams params, Consumer<ItemStac
}

@ModifyArg(
method = "dropFromLootTable(Lnet/minecraft/server/level/ServerLevel;Lnet/minecraft/world/damagesource/DamageSource;Z)V",
method = /*? if >=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"
Expand Down

0 comments on commit dcaf1d1

Please sign in to comment.