Skip to content

Commit

Permalink
Fix crash with viewing RAT's Mischief items in EMI
Browse files Browse the repository at this point in the history
likely fixes other things too

Signed-off-by: unilock <[email protected]>
  • Loading branch information
unilock committed Feb 28, 2024
1 parent 85f55d0 commit 9093e3b
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ public RatItemRenderer() {
public void render(ItemStack stack, ModelTransformationMode transformType, MatrixStack matrices, VertexConsumerProvider bufferSource, int packedLight, int packedOverlay) {
// super.render(stack, transformType, matrices, bufferSource, packedLight, packedOverlay);

this.animatable = (RatItem) stack.getItem();
this.currentItemStack = stack;
this.renderPerspective = transformType;

matrices.push();
matrices.translate(0.5f, 0.51f, 0.5f);

Expand Down

0 comments on commit 9093e3b

Please sign in to comment.