fix array indexes
This commit is contained in:
parent
db1ff2e5c7
commit
ec5f7edf7f
1 changed files with 2 additions and 2 deletions
|
@ -339,13 +339,13 @@ public class TilePump extends TileBuildCraft implements IMachine, IPowerReceptor
|
||||||
public void handleUpdatePacket(PacketUpdate packet) {
|
public void handleUpdatePacket(PacketUpdate packet) {
|
||||||
PacketPayloadArrays payload = (PacketPayloadArrays)packet.payload;
|
PacketPayloadArrays payload = (PacketPayloadArrays)packet.payload;
|
||||||
if (payload.intPayload[0] > 0) {
|
if (payload.intPayload[0] > 0) {
|
||||||
FluidStack liquid = new FluidStack(FluidRegistry.getFluid(payload.intPayload[0]), payload.intPayload[2]);
|
FluidStack liquid = new FluidStack(FluidRegistry.getFluid(payload.intPayload[0]), payload.intPayload[1]);
|
||||||
tank.setFluid(liquid);
|
tank.setFluid(liquid);
|
||||||
} else {
|
} else {
|
||||||
tank.setFluid(null);
|
tank.setFluid(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
aimY = payload.intPayload[3];
|
aimY = payload.intPayload[2];
|
||||||
tubeY = payload.floatPayload[0];
|
tubeY = payload.floatPayload[0];
|
||||||
|
|
||||||
setTubePosition();
|
setTubePosition();
|
||||||
|
|
Loading…
Reference in a new issue