mirror of
https://github.com/GTNewHorizons/CodeChickenCore.git
synced 2026-11-11 15:57:42 +00:00
Fix inconsistent use of var ints in fluid packets
This commit is contained in:
1 parent
307ca81694
commit
5c54b184ea
2 files changed
+2
-2
No files matched your search
@@ -233,7 +233,7 @@ public class MCDataOutputWrapper implements MCDataOutput
|
||||
writeShort(-1);
|
||||
} else {
|
||||
writeShort(fluid.fluidID);
|
||||
writeInt(fluid.amount);
|
||||
writeVarInt(fluid.amount);
|
||||
writeNBTTagCompound(fluid.tag);
|
||||
}
|
||||
return this;
|
||||
|
||||
@@ -465,7 +465,7 @@ public final class PacketCustom implements MCDataInput, MCDataOutput
|
||||
short fluidID = readShort();
|
||||
|
||||
if (fluidID >= 0)
|
||||
fluid = new FluidStack(fluidID, readInt(), readNBTTagCompound());
|
||||
fluid = new FluidStack(fluidID, readVarInt(), readNBTTagCompound());
|
||||
|
||||
return fluid;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user