1
0
mirror of https://github.com/moparisthebest/minetest synced 2024-11-17 14:55:13 -05:00

Fix loading of old signs

This commit is contained in:
Perttu Ahola 2012-06-04 18:19:23 +03:00
parent 3bea1a944e
commit 816b9c8d71

View 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