Skip to content

Commit

Permalink
fix testmod WardenMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
Treetrain1 committed Jan 5, 2025
1 parent 1f6a724 commit 25af055
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
import net.frozenblock.lib.screenshake.api.ScreenShakeManager;
import net.frozenblock.lib.spotting_icons.impl.EntitySpottingIconInterface;
import net.frozenblock.lib.testmod.FrozenTestMain;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.entity.EntityType;
import net.minecraft.world.entity.monster.Monster;
Expand All @@ -46,7 +47,7 @@ private void initWithIcon(EntityType<? extends Warden> entityType, Level level,
}

@Inject(method = "doHurtTarget", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/entity/monster/warden/Warden;playSound(Lnet/minecraft/sounds/SoundEvent;FF)V"))
private void startShaking(Entity target, CallbackInfoReturnable<Boolean> cir) {
ScreenShakeManager.addScreenShake(this.level(), 0.6F, 8, this.getX(), this.getY(), this.getZ(), 15);
private void startShaking(ServerLevel level, Entity target, CallbackInfoReturnable<Boolean> cir) {
ScreenShakeManager.addScreenShake(level, 0.6F, 8, this.getX(), this.getY(), this.getZ(), 15);
}
}

0 comments on commit 25af055

Please sign in to comment.