From: Perttu Ahola Date: Mon, 4 Jun 2012 15:19:23 +0000 (+0300) Subject: Fix loading of old signs X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=816b9c8d711818aaa3baec212216e47ac863814e;p=zefram%2Fminetest%2Fminetest_engine.git Fix loading of old signs --- diff --git a/src/content_nodemeta.cpp b/src/content_nodemeta.cpp index 2f32cf16..07400b07 100644 --- a/src/content_nodemeta.cpp +++ b/src/content_nodemeta.cpp @@ -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