1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-10-26 11:27:38 +00:00

Fix printouts crashing in item frames

This commit is contained in:
Jonathan Coates
2023-01-09 18:28:44 +00:00
parent cdc91a8e5d
commit 2457a31728
7 changed files with 203 additions and 146 deletions

View File

@@ -25,6 +25,9 @@ class ItemFrameRendererMixin {
)
@SuppressWarnings("UnusedMethod")
private void render(ItemFrame entity, float yaw, float partialTicks, PoseStack pose, MultiBufferSource buffers, int light, CallbackInfo ci) {
if (ClientHooks.onRenderItemFrame(pose, buffers, entity, entity.getItem(), light)) ci.cancel();
if (ClientHooks.onRenderItemFrame(pose, buffers, entity, entity.getItem(), light)) {
ci.cancel();
pose.popPose();
}
}
}