Small fix

This commit is contained in:
Aleksey 2021-01-23 14:48:43 +03:00
parent f309af077b
commit b5ca1df3d1
2 changed files with 2 additions and 1 deletions

View file

@ -99,7 +99,7 @@ public class EternalPedestal extends PedestalBlock {
} }
List<ItemStack> drop = Lists.newArrayList(); List<ItemStack> drop = Lists.newArrayList();
BlockEntity blockEntity = builder.getNullable(LootContextParameters.BLOCK_ENTITY); BlockEntity blockEntity = builder.getNullable(LootContextParameters.BLOCK_ENTITY);
if (blockEntity != null && blockEntity instanceof EternalPedestalEntity) { if (blockEntity instanceof EternalPedestalEntity) {
EternalPedestalEntity pedestal = (EternalPedestalEntity) blockEntity; EternalPedestalEntity pedestal = (EternalPedestalEntity) blockEntity;
if (!pedestal.isEmpty()) { if (!pedestal.isEmpty()) {
drop.add(pedestal.getStack(0)); drop.add(pedestal.getStack(0));

View file

@ -135,6 +135,7 @@ public class PedestalBlock extends BlockBaseNotFull implements BlockEntityProvid
BlockState state = world.getBlockState(posMutable); BlockState state = world.getBlockState(posMutable);
if (state.getBlock() instanceof InfusionPedestal) { if (state.getBlock() instanceof InfusionPedestal) {
((InfusionPedestal) state.getBlock()).checkRitual(world, posMutable); ((InfusionPedestal) state.getBlock()).checkRitual(world, posMutable);
break;
} }
} }
} }