Revert "Preserve getOrCreateStack"

This reverts commit a6f5c51d6a.

Would duplicate the enchants on the backtank
This commit is contained in:
VoidLeech 2024-07-05 02:29:33 +02:00
parent a6f5c51d6a
commit caf79d40ae
No known key found for this signature in database

View file

@ -158,7 +158,7 @@ public class BacktankBlock extends HorizontalKineticBlock
ItemStack stack = new ItemStack(item);
Optional<BacktankBlockEntity> blockEntityOptional = getBlockEntityOptional(blockGetter, pos);
CompoundTag tag = stack.getOrCreateTag().merge(blockEntityOptional.map(BacktankBlockEntity::getFullNbt).orElse(new CompoundTag()));
CompoundTag tag = blockEntityOptional.map(BacktankBlockEntity::getFullNbt).orElse(stack.getOrCreateTag());
int air = blockEntityOptional.map(BacktankBlockEntity::getAirLevel)
.orElse(0);