mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-26 08:48:34 +01:00
Feed the blockpos when opening a menu
This commit is contained in:
parent
82aaacf1d9
commit
f2596f974a
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ public abstract class BlockContainerBase extends Block implements EntityBlock {
|
||||||
if (!world.isClientSide) {
|
if (!world.isClientSide) {
|
||||||
BlockEntity tile = world.getBlockEntity(pos);
|
BlockEntity tile = world.getBlockEntity(pos);
|
||||||
if (expectedInstance.isInstance(tile)) {
|
if (expectedInstance.isInstance(tile)) {
|
||||||
player.openMenu((MenuProvider) tile);
|
player.openMenu((MenuProvider) tile, pos);
|
||||||
}
|
}
|
||||||
return InteractionResult.SUCCESS;
|
return InteractionResult.SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue