Feed the blockpos when opening a menu

This commit is contained in:
Mrbysco 2024-03-09 00:23:20 +01:00
parent 82aaacf1d9
commit f2596f974a

View file

@ -50,7 +50,7 @@ public abstract class BlockContainerBase extends Block implements EntityBlock {
if (!world.isClientSide) {
BlockEntity tile = world.getBlockEntity(pos);
if (expectedInstance.isInstance(tile)) {
player.openMenu((MenuProvider) tile);
player.openMenu((MenuProvider) tile, pos);
}
return InteractionResult.SUCCESS;
}