From d15d6c4e6bbd64b8f6980b33413b7a8ffb39eb7c Mon Sep 17 00:00:00 2001 From: Perttu Ahola Date: Sat, 16 Jun 2012 22:45:35 +0300 Subject: Fix "Node placement prediction failed for (places __default) - Name not known" --- src/scriptapi.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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 -- cgit v1.2.3