mirror of
https://github.com/refactorinqq/SLC-1.8.9.git
synced 2024-11-10 09:41:33 +01:00
fix
This commit is contained in:
parent
6deb724df5
commit
32b548ec4d
@ -10,7 +10,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|||||||
|
|
||||||
@Mixin(RenderArrow.class)
|
@Mixin(RenderArrow.class)
|
||||||
public class RenderArrowMixin {
|
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) {
|
public void cancelRendering(EntityArrow entity, double x, double y, double z, float entityYaw, float partialTicks, CallbackInfo ci) {
|
||||||
if (RenderArrowHook.cancelRendering(entity)) {
|
if (RenderArrowHook.cancelRendering(entity)) {
|
||||||
ci.cancel();
|
ci.cancel();
|
||||||
|
Loading…
Reference in New Issue
Block a user