removed debug garbage
This commit is contained in:
parent
526979fa0b
commit
6953724b0f
@ -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
|
||||||
|
|||||||
@ -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());
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user