diff --git a/src/main/java/owmii/powah/block/reactor/ReactorBlock.java b/src/main/java/owmii/powah/block/reactor/ReactorBlock.java index f29f40a..80ffb06 100644 --- a/src/main/java/owmii/powah/block/reactor/ReactorBlock.java +++ b/src/main/java/owmii/powah/block/reactor/ReactorBlock.java @@ -76,7 +76,11 @@ public BlockState getStateForPlacement(BlockPlaceContext context) { protected ItemInteractionResult useItemOn(ItemStack pStack, BlockState pState, Level pLevel, BlockPos pPos, Player pPlayer, InteractionHand pHand, BlockHitResult pHitResult) { BlockEntity tileentity = pLevel.getBlockEntity(pPos); - if (tileentity instanceof ReactorTile reactor) { + if (tileentity instanceof ReactorPartTile reactor) { + if (reactor.isBuilt() && reactor.core().isPresent()) { + return reactor.getBlock().useItemOn(pStack, pState, pLevel, reactor.getCorePos(), pPlayer, pHand, pHitResult); + } + } else if (tileentity instanceof ReactorTile reactor) { if (reactor.isBuilt()) { Tank tank = reactor.getTank(); if (FluidUtil.interactWithFluidHandler(pPlayer, pHand, tank)) {