fix fluid slots offsets
This commit is contained in:
-1
@@ -203,7 +203,6 @@ public class GuiFluidInterfaceConfigurationTerminal extends AEBaseGui implements
|
||||
if (slot instanceof GuiFluidTank) {
|
||||
if (this.isPointInRegion(slot.xPos(), slot.yPos(), slot.getWidth(), slot.getHeight(), xCoord, yCoord) && slot.canClick(this.mc.player)) {
|
||||
NetworkHandler.instance().sendToServer(new PacketInventoryAction(InventoryAction.PICKUP_OR_SET_DOWN, slot.getId(), guiFluidTankClientDCInternalFluidInvMap.get(slot).getId()));
|
||||
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ public class GuiFluidInterface extends GuiUpgradeable implements IConfigManagerH
|
||||
final IAEFluidTank fluidTank = this.host.getDualityFluidInterface().getTanks();
|
||||
|
||||
for (int i = 0; i < DualityFluidInterface.NUMBER_OF_TANKS; ++i) {
|
||||
this.guiSlots.add(new GuiFluidTank(fluidTank, i, DualityFluidInterface.NUMBER_OF_TANKS + i, 36 + 18 * i, 57, 16, 64));
|
||||
this.guiSlots.add(new GuiFluidTank(fluidTank, i, DualityFluidInterface.NUMBER_OF_TANKS + i, 35 + 18 * i, 53, 16, 68));
|
||||
this.guiSlots.add(new GuiFluidSlot(configFluids, i, i, 35 + 18 * i, 35));
|
||||
}
|
||||
|
||||
|
||||
@@ -96,12 +96,12 @@ public class GuiFluidTank extends GuiCustomSlot implements ITooltip {
|
||||
|
||||
@Override
|
||||
public int xPos() {
|
||||
return this.x - 1;
|
||||
return this.x;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int yPos() {
|
||||
return this.y - 4;
|
||||
return this.y;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -111,7 +111,7 @@ public class GuiFluidTank extends GuiCustomSlot implements ITooltip {
|
||||
|
||||
@Override
|
||||
public int getHeight() {
|
||||
return this.height + 4;
|
||||
return this.height;
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -125,13 +125,11 @@ public class GuiFluidTank extends GuiCustomSlot implements ITooltip {
|
||||
|
||||
@Override
|
||||
public void slotClicked(ItemStack clickStack, final int mouseButton) {
|
||||
|
||||
if (getFluidStack() != null) {
|
||||
NetworkHandler.instance().sendToServer(new PacketInventoryAction(InventoryAction.FILL_ITEM, slot, id));
|
||||
} else {
|
||||
NetworkHandler.instance().sendToServer(new PacketInventoryAction(InventoryAction.EMPTY_ITEM, slot, id));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user