Fix loading of old signs

master
Perttu Ahola 2012-06-04 18:19:23 +03:00
parent 3bea1a944e
commit 816b9c8d71
1 changed files with 2 additions and 2 deletions

View File

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