Modernize client code (#6250)
[oweals/minetest.git] / src / itemdef.cpp
index 8eca8cafb5e51af608ad9480a5ef49cfcee115bf..e73246115acaa04942fd42af70057d444965c731 100644 (file)
@@ -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