wip
This commit is contained in:
@@ -324,8 +324,9 @@ public class Platform {
|
||||
}
|
||||
|
||||
int x;
|
||||
int y = 0;
|
||||
int z = 0;
|
||||
int y;
|
||||
int z;
|
||||
|
||||
if (tile != null) {
|
||||
x = tile.getPos().getX();
|
||||
y = tile.getPos().getY();
|
||||
@@ -333,10 +334,12 @@ public class Platform {
|
||||
} else {
|
||||
if (p.openContainer instanceof IInventorySlotAware) {
|
||||
x = ((IInventorySlotAware) p.openContainer).getInventorySlot();
|
||||
y = ((IInventorySlotAware)p.openContainer).isBaubleSlot() ? 1 : 0;
|
||||
y = ((IInventorySlotAware) p.openContainer).isBaubleSlot() ? 1 : 0;
|
||||
} else {
|
||||
x = p.inventory.currentItem;
|
||||
y = 0;
|
||||
}
|
||||
z = Integer.MIN_VALUE;
|
||||
}
|
||||
|
||||
if ((type.getType().isItem() && tile == null) || type.hasPermissions(tile, x, y, z, side, p)) {
|
||||
@@ -350,18 +353,6 @@ public class Platform {
|
||||
}
|
||||
}
|
||||
|
||||
public static void openGUI(@Nonnull final EntityPlayer p, int i, @Nonnull final GuiBridge type, boolean isBauble) {
|
||||
if (isClient()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (type.getType().isItem()) {
|
||||
if (type.getType() == GuiHostType.ITEM) {
|
||||
p.openGui(AppEng.instance(), type.ordinal() << 4, p.getEntityWorld(), i, isBauble ? 1 : 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* returns true if the code is on the client.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user