Skip to content

Commit

Permalink
Fix Spatial IO Port opening the wrong menu (#7932)
Browse files Browse the repository at this point in the history
Closes #7931.
  • Loading branch information
62832 committed Jun 18, 2024
1 parent 51ef1d2 commit 1e352e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/appeng/block/spatial/SpatialIOPortBlock.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
import appeng.block.AEBaseEntityBlock;
import appeng.blockentity.spatial.SpatialIOPortBlockEntity;
import appeng.menu.MenuOpener;
import appeng.menu.implementations.VibrationChamberMenu;
import appeng.menu.implementations.SpatialIOPortMenu;
import appeng.menu.locator.MenuLocators;

public class SpatialIOPortBlock extends AEBaseEntityBlock<SpatialIOPortBlockEntity> {
Expand Down Expand Up @@ -76,7 +76,7 @@ protected InteractionResult useWithoutItem(BlockState state, Level level, BlockP
BlockHitResult hitResult) {
if (level.getBlockEntity(pos) instanceof SpatialIOPortBlockEntity be) {
if (!level.isClientSide) {
MenuOpener.open(VibrationChamberMenu.TYPE, player, MenuLocators.forBlockEntity(be));
MenuOpener.open(SpatialIOPortMenu.TYPE, player, MenuLocators.forBlockEntity(be));
}
return InteractionResult.sidedSuccess(level.isClientSide());
}
Expand Down

0 comments on commit 1e352e2

Please sign in to comment.