From: Perttu Ahola Date: Sat, 16 Jun 2012 19:45:35 +0000 (+0300) Subject: Fix "Node placement prediction failed for (places __default) - Name not known" X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=d15d6c4e6bbd64b8f6980b33413b7a8ffb39eb7c;p=zefram%2Fminetest%2Fminetest_engine.git Fix "Node placement prediction failed for (places __default) - Name not known" --- diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index 3868d103..35f00b7b 100644 --- a/src/scriptapi.cpp +++ b/src/scriptapi.cpp @@ -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"){ - def.node_placement_prediction = name; + if(def.node_placement_prediction == "__default"){ + if(def.type == ITEM_NODE) + def.node_placement_prediction = name; + else + def.node_placement_prediction = ""; } // Register item definition