use of pneumaticCraft.common.network.PacketChangeGPSToolCoordinate in project PneumaticCraft by MineMaarten.
the class GuiGPSTool method onGuiClosed.
@Override
public void onGuiClosed() {
ChunkPosition newPos = new ChunkPosition(textFields[0].getValue(), textFields[1].getValue(), textFields[2].getValue());
NetworkHandler.sendToServer(new PacketChangeGPSToolCoordinate(newPos.chunkPosX, newPos.equals(oldGPSLoc) ? -1 : newPos.chunkPosY, newPos.chunkPosZ, variableField.getText()));
}
Aggregations