mirror of
https://github.com/PixelGuys/Cubyz.git
synced 2025-08-03 19:28:49 -04:00
mark tobytes as pub
This commit is contained in:
parent
e204a27fe2
commit
67261a4060
@ -2011,7 +2011,7 @@ pub fn loadFromZon(self: Inventory, zon: ZonElement) void {
|
||||
}
|
||||
}
|
||||
|
||||
fn toBytes(self: Inventory, writer: *BinaryWriter) void {
|
||||
pub fn toBytes(self: Inventory, writer: *BinaryWriter) void {
|
||||
writer.writeVarInt(u32, @intCast(self._items.len));
|
||||
for(self._items) |stack| {
|
||||
stack.toBytes(writer);
|
||||
|
Loading…
x
Reference in New Issue
Block a user