Skip to content

Commit

Permalink
Renamed ZombieVillagerEntityMixin to ZombieVillagerEntityInvokerMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
RubixDev committed Feb 23, 2021
1 parent 513ff3b commit c6a77ea
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.rubixdev.rug.behaviours;

import com.rubixdev.rug.mixins.ZombieVillagerEntityMixin;
import com.rubixdev.rug.mixins.ZombieVillagerEntityInvokerMixin;
import net.minecraft.block.DispenserBlock;
import net.minecraft.block.dispenser.FallibleItemDispenserBehavior;
import net.minecraft.entity.effect.StatusEffects;
Expand Down Expand Up @@ -32,7 +32,7 @@ private static boolean tryCureZombieVillager(ServerWorld world, BlockPos pos) {

for (ZombieVillagerEntity zombieVillagerEntity : list) {
if (!zombieVillagerEntity.isConverting() && zombieVillagerEntity.hasStatusEffect(StatusEffects.WEAKNESS)) {
((ZombieVillagerEntityMixin) zombieVillagerEntity).invokeSetConverting(null, zombieVillagerEntity.getRandom().nextInt(2401) + 3600);
((ZombieVillagerEntityInvokerMixin) zombieVillagerEntity).invokeSetConverting(null, zombieVillagerEntity.getRandom().nextInt(2401) + 3600);
return true;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import java.util.UUID;

@Mixin(ZombieVillagerEntity.class)
public interface ZombieVillagerEntityMixin {
public interface ZombieVillagerEntityInvokerMixin {
@Invoker("setConverting")
void invokeSetConverting(UUID uuid, int delay);
}
2 changes: 1 addition & 1 deletion src/main/resources/rug.mixins.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"ShulkerEntityMixin",
"SugarCaneBlockMixin",
"SugarCaneBlockMixin",
"ZombieVillagerEntityMixin"
"ZombieVillagerEntityInvokerMixin"
],
"client": [
],
Expand Down

0 comments on commit c6a77ea

Please sign in to comment.