diff options
author | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-03-09 10:27:57 +0100 |
---|---|---|
committer | Elias Fleckenstein <eliasfleckenstein@web.de> | 2021-03-09 10:27:57 +0100 |
commit | fe97d1b5d3654e17489c589018ea3aaf73af2354 (patch) | |
tree | 03f288fdf057ef52f02c932c9c2bb28a25626025 /src/itemstackmetadata.cpp | |
parent | 88a1a5db9539bb2452e6048ac8f6738fb433e918 (diff) | |
download | minetest-itemmeta_restrictions.tar.xz |
Rename hash field to _hash and document it properlyitemmeta_restrictions
Diffstat (limited to 'src/itemstackmetadata.cpp')
-rw-r--r-- | src/itemstackmetadata.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/itemstackmetadata.cpp b/src/itemstackmetadata.cpp index 048dd9eec..d10760af2 100644 --- a/src/itemstackmetadata.cpp +++ b/src/itemstackmetadata.cpp @@ -78,7 +78,7 @@ void ItemStackMetadata::serialize(std::ostream &os, InventoryOptimizationOption } std::string hash_str = os_hash.str(); if (! hash_str.empty()) { - os2 << "hash" << DESERIALIZE_KV_DELIM + os2 << "_hash" << DESERIALIZE_KV_DELIM << murmur_hash_64_ua(hash_str.data(), hash_str.length(), 0xdeadbeef) << DESERIALIZE_PAIR_DELIM; } os << serializeJsonStringIfNeeded(os2.str()); |