mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix "Node placement prediction failed for (places __default) - Name not known"
This commit is contained in:
parent
6b598f61a6
commit
d15d6c4e6b
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue