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();
BlockEntity blockEntity = builder.getNullable(LootContextParameters.BLOCK_ENTITY);
if (blockEntity != null && blockEntity instanceof EternalPedestalEntity) {
if (blockEntity instanceof EternalPedestalEntity) {
EternalPedestalEntity pedestal = (EternalPedestalEntity) blockEntity;
if (!pedestal.isEmpty()) {
drop.add(pedestal.getStack(0));