Fixed Tick for InfusionPedestal

This commit is contained in:
Frank Bauer 2021-06-29 23:05:36 +02:00
parent b6c4e73481
commit ab6d015c98
3 changed files with 16 additions and 16 deletions

View file

@ -435,7 +435,12 @@ public class PedestalBlock extends BaseBlockNotFull implements EntityBlock {
@Override
@Nullable
public <T extends BlockEntity> BlockEntityTicker<T> getTicker(Level level, BlockState blockState, BlockEntityType<T> blockEntityType) {
return level.isClientSide() ? null : createTickerHelper(blockEntityType, EndBlockEntities.PEDESTAL, PedestalBlockEntity::tick);
if (level.isClientSide) return null;
BlockEntityTicker<T> ticker = createTickerHelper(blockEntityType, EndBlockEntities.PEDESTAL, PedestalBlockEntity::tick);
if (ticker!=null) return ticker;
return createTickerHelper(blockEntityType, EndBlockEntities.INFUSION_PEDESTAL, InfusionPedestalEntity::tick);
}
@Nullable