mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Minor improvements to metadata handling
This commit is contained in:
parent
610ddaba7c
commit
700fbc803d
6 changed files with 31 additions and 29 deletions
|
@ -89,11 +89,11 @@ void ItemStackMetadata::deSerialize(std::istream &is)
|
|||
while (!fnd.at_end()) {
|
||||
std::string name = fnd.next(DESERIALIZE_KV_DELIM_STR);
|
||||
std::string var = fnd.next(DESERIALIZE_PAIR_DELIM_STR);
|
||||
m_stringvars[name] = var;
|
||||
m_stringvars[name] = std::move(var);
|
||||
}
|
||||
} else {
|
||||
// BACKWARDS COMPATIBILITY
|
||||
m_stringvars[""] = in;
|
||||
m_stringvars[""] = std::move(in);
|
||||
}
|
||||
}
|
||||
updateToolCapabilities();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue