Skip to content

Commit

Permalink
fix crate dropping while the player is in creative mod
Browse files Browse the repository at this point in the history
  • Loading branch information
Leclowndu93150 committed Oct 17, 2024
1 parent 4ea8d04 commit 301c772
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ protected VoxelShape getShape(BlockState state, BlockGetter level, BlockPos pos,
level, (double) pos.getX() + 0.5, (double) pos.getY() + 0.5, (double) pos.getZ() + 0.5, itemstack
);
itementity.setDefaultPickUpDelay();
if(player.isCreative()){return super.playerWillDestroy(level, pos, state, player);}
level.addFreshEntity(itementity);
}
}
Expand Down

0 comments on commit 301c772

Please sign in to comment.