fix: multiblock assembler gui range

fixes #12
This commit is contained in:
Timo Ley 2023-02-07 15:07:47 +01:00
parent c41e2711fb
commit 9b6f9438fd
2 changed files with 7 additions and 1 deletions

View file

@ -1,10 +1,16 @@
package appeng.container.implementations;
import appeng.tile.legacy.TileAssembler;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.entity.player.InventoryPlayer;
public class ContainerAssemblerMB extends ContainerAssembler {
public ContainerAssemblerMB(InventoryPlayer ip, TileAssembler te) {
super(ip, te);
}
@Override
public boolean canInteractWith(EntityPlayer p) {
return true;
}
}

View file

@ -639,7 +639,7 @@ public enum GuiBridge implements IGuiHandler {
) {
final World w = player.getEntityWorld();
if (Platform.hasPermissions(
if (this == GUI_ASSEMBLER_MB || Platform.hasPermissions(
te != null ? new DimensionalCoord(te)
: new DimensionalCoord(player.worldObj, x, y, z),
player