Skip to content

Commit

Permalink
fix: incompatible with VillagerTweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
RubixDev committed Dec 14, 2023
1 parent ba47b7b commit 4da1e58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/rubixdev/rug/mixins/ZombieEntityMixin.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Redirect;

@Mixin(ZombieEntity.class)
@Mixin(value = ZombieEntity.class, priority = 990)
public class ZombieEntityMixin {
@Redirect(
method = "onKilledOther",
Expand All @@ -17,7 +17,7 @@ public class ZombieEntityMixin {
value = "INVOKE",
target =
"Lnet/minecraft/server/world/ServerWorld;getDifficulty()Lnet/minecraft/world/Difficulty;"),
require = 0 // Compatability with minitweaks
require = 0 // Compatability with minitweaks and VillagerTweaks
)
private Difficulty allowConversion(ServerWorld world) {
if (RugSettings.villagersAlwaysConvert && world.getDifficulty() != Difficulty.PEACEFUL) {
Expand Down

0 comments on commit 4da1e58

Please sign in to comment.