diff options
author | Perttu Ahola <celeron55@gmail.com> | 2012-06-16 22:45:35 +0300 |
---|---|---|
committer | Perttu Ahola <celeron55@gmail.com> | 2012-06-16 22:45:35 +0300 |
commit | d15d6c4e6bbd64b8f6980b33413b7a8ffb39eb7c (patch) | |
tree | 2d3a6e02af44f21a94df83b53d6c2c57a425c992 /src | |
parent | 6b598f61a6920823aad7c8814bad8e68f85ad66b (diff) | |
download | minetest-d15d6c4e6bbd64b8f6980b33413b7a8ffb39eb7c.tar.gz minetest-d15d6c4e6bbd64b8f6980b33413b7a8ffb39eb7c.tar.bz2 minetest-d15d6c4e6bbd64b8f6980b33413b7a8ffb39eb7c.zip |
Fix "Node placement prediction failed for (places __default) - Name not known"
Diffstat (limited to 'src')
-rw-r--r-- | src/scriptapi.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/scriptapi.cpp b/src/scriptapi.cpp index 3868d1035..35f00b7b5 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 |