Skip to content

Commit

Permalink
fix: multiblock assembler gui range
Browse files Browse the repository at this point in the history
  • Loading branch information
leytilera committed Feb 7, 2023
1 parent c41e271 commit 9b6f943
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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;
}
}
2 changes: 1 addition & 1 deletion src/main/java/appeng/core/sync/GuiBridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ public boolean hasPermissions(
) {
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
Expand Down

0 comments on commit 9b6f943

Please sign in to comment.