mirror of
https://github.com/Creators-of-Create/Create.git
synced 2024-12-27 23:47:38 +01:00
Revert "Preserve getOrCreateStack"
This reverts commit a6f5c51d6a
.
Would duplicate the enchants on the backtank
This commit is contained in:
parent
a6f5c51d6a
commit
caf79d40ae
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ public class BacktankBlock extends HorizontalKineticBlock
|
||||||
ItemStack stack = new ItemStack(item);
|
ItemStack stack = new ItemStack(item);
|
||||||
Optional<BacktankBlockEntity> blockEntityOptional = getBlockEntityOptional(blockGetter, pos);
|
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)
|
int air = blockEntityOptional.map(BacktankBlockEntity::getAirLevel)
|
||||||
.orElse(0);
|
.orElse(0);
|
||||||
|
|
Loading…
Reference in a new issue