NBA Superstar

- Fix throwing packages in creative taking away the package
This commit is contained in:
IThundxr 2025-01-20 15:50:20 -05:00
parent 0c277b1b95
commit ddb56e3815
Failed to generate hash of commit

View file

@ -366,11 +366,8 @@ public class PackageItem extends Item {
SoundSource.NEUTRAL, 0.5F, 0.5F);
ItemStack copy = stack.copy();
stack.shrink(1);
if (stack.isEmpty())
player.getInventory()
.removeItem(stack);
if (!player.getAbilities().instabuild)
stack.shrink(1);
Vec3 vec = new Vec3(entity.getX(), entity.getY() + entity.getBoundingBox()
.getYsize() / 2f, entity.getZ());