mirror of
https://github.com/minetest/minetest.git
synced 2024-12-28 08:57:30 +01:00
Fix deserialization of ItemDefinition (#5995)
This commit is contained in:
parent
212945c7a3
commit
49d6e5f4ab
@ -209,7 +209,7 @@ void ItemDefinition::deSerialize(std::istream &is)
|
||||
sound_place.name = deSerializeString(is);
|
||||
sound_place.gain = readF1000(is);
|
||||
}
|
||||
if(version == 3) {
|
||||
if(version >= 3) {
|
||||
range = readF1000(is);
|
||||
}
|
||||
// If you add anything here, insert it primarily inside the try-catch
|
||||
|
Loading…
Reference in New Issue
Block a user