Fix "Node placement prediction failed for (places __default) - Name not known"

master
Perttu Ahola 2012-06-16 22:45:35 +03:00
parent 6b598f61a6
commit d15d6c4e6b
1 changed files with 5 additions and 2 deletions

View File

@ -3976,8 +3976,11 @@ static int l_register_item_raw(lua_State *L)
// Default to having client-side placement prediction for nodes
// ("" in item definition sets it off)
if(def.type == ITEM_NODE && def.node_placement_prediction == "__default"){
if(def.node_placement_prediction == "__default"){
if(def.type == ITEM_NODE)
def.node_placement_prediction = name;
else
def.node_placement_prediction = "";
}
// Register item definition