This commit is contained in:
kirillsaint 2023-07-10 00:37:03 +06:00
parent 6deb724df5
commit 32b548ec4d

View File

@ -10,7 +10,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(RenderArrow.class)
public class RenderArrowMixin {
@Inject(method = "doRender(Lnet/minecraft/entity/projectile/EntityArrow;DDDFF)V", at = @At("HEAD"))
@Inject(method = "doRender(Lnet/minecraft/entity/projectile/EntityArrow;DDDFF)V", at = @At("HEAD"), cancellable = true)
public void cancelRendering(EntityArrow entity, double x, double y, double z, float entityYaw, float partialTicks, CallbackInfo ci) {
if (RenderArrowHook.cancelRendering(entity)) {
ci.cancel();