mark tobytes as pub

This commit is contained in:
OneAvargeCoder193 2025-07-25 16:24:42 -04:00
parent e204a27fe2
commit 67261a4060

View File

@ -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);