Fix loading of old signs
authorPerttu Ahola <celeron55@gmail.com>
Mon, 4 Jun 2012 15:19:23 +0000 (18:19 +0300)
committerPerttu Ahola <celeron55@gmail.com>
Mon, 4 Jun 2012 15:19:23 +0000 (18:19 +0300)
src/content_nodemeta.cpp

index 2f32cf16a871338c5d107ec3af498a5324a8f2f0..07400b074204e83edc5e23e6ebcf2b09c5d700c6 100644 (file)
@@ -57,11 +57,11 @@ static bool content_nodemeta_deserialize_legacy_body(
        }
        else if(id == NODEMETA_SIGN) // SignNodeMetadata
        {
-               meta->setString("text", deSerializeLongString(is));
+               meta->setString("text", deSerializeString(is));
                //meta->setString("infotext","\"${text}\"");
                meta->setString("infotext",
                                std::string("\"") + meta->getString("text") + "\"");
-               meta->setString("formspec","field[text;;${text}]");
+               meta->setString("formspec","hack:sign_text_input");
                return false;
        }
        else if(id == NODEMETA_CHEST) // ChestNodeMetadata