mirror of
https://github.com/MineLittlePony/MineLittlePony.git
synced 2024-11-22 04:27:59 +01:00
Fixed magic rendering on shields. Closes #174
This commit is contained in:
parent
92858211a8
commit
5b20402f3f
1 changed files with 7 additions and 0 deletions
|
@ -26,4 +26,11 @@ abstract class MixinItemRenderer {
|
|||
info.setReturnValue(provider.getBuffer(LevitatingItemRenderer.getRenderLayer()));
|
||||
}
|
||||
}
|
||||
|
||||
@Inject(method = "method_29711(" + VertexConsumerProvider + RenderLayer + Boolean + Boolean + ")" + VertexConsumer, at = @At("HEAD"), cancellable = true)
|
||||
private static void onMethod_29711(VertexConsumerProvider provider, RenderLayer layer, boolean solide, boolean glint, CallbackInfoReturnable<VertexConsumer> info) {
|
||||
if (LevitatingItemRenderer.usesTransparency()) {
|
||||
info.setReturnValue(provider.getBuffer(LevitatingItemRenderer.getRenderLayer()));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue