removed debug garbage

This commit is contained in:
MihailRis 2024-02-18 19:07:58 +03:00
parent 526979fa0b
commit 6953724b0f
2 changed files with 1 additions and 9 deletions

View File

@ -1,11 +1,3 @@
function on_open(invid)
print("OPEN", invid)
end
function on_close(invid)
print("CLOSE", invid)
end
function inventory_share_func(invid, slotid) function inventory_share_func(invid, slotid)
inventory.set(invid, slotid, 0, 0) inventory.set(invid, slotid, 0, 0)
end end

View File

@ -219,7 +219,7 @@ void WorldFiles::put(Chunk* chunk){
for (auto& entry : inventories) { for (auto& entry : inventories) {
builder.putInt32(entry.first); builder.putInt32(entry.first);
auto map = entry.second->serialize(); auto map = entry.second->serialize();
auto bytes = json::to_binary(map.get(), false); auto bytes = json::to_binary(map.get(), true);
builder.putInt32(bytes.size()); builder.putInt32(bytes.size());
builder.put(bytes.data(), bytes.size()); builder.put(bytes.data(), bytes.size());
} }