Skip to content

Commit

Permalink
Fix dropped 2d item bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lowercasebtw committed Dec 18, 2024
1 parent e7ad979 commit 1bf5eeb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public abstract class MixinItemEntityRenderer {
if (optionalEntity.isPresent()) {
ItemEntity entity = (ItemEntity) optionalEntity.get();
ItemStack itemStack = entity.getStack();
if (!(itemStack.getItem() instanceof BlockItem) && itemEntityRenderState.itemRenderState.hasDepth()) {
if (!(itemStack.getItem() instanceof BlockItem) && !itemEntityRenderState.itemRenderState.hasDepth()) {
Camera camera = MinecraftClient.getInstance().gameRenderer.getCamera();
return MathUtils.toRadians(180F - camera.getYaw());
}
Expand Down

0 comments on commit 1bf5eeb

Please sign in to comment.