mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Fix "Node placement prediction failed for (places __default) - Name not known"
This commit is contained in:
parent
6b598f61a6
commit
d15d6c4e6b
@ -3976,8 +3976,11 @@ static int l_register_item_raw(lua_State *L)
|
|||||||
|
|
||||||
// Default to having client-side placement prediction for nodes
|
// Default to having client-side placement prediction for nodes
|
||||||
// ("" in item definition sets it off)
|
// ("" 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;
|
def.node_placement_prediction = name;
|
||||||
|
else
|
||||||
|
def.node_placement_prediction = "";
|
||||||
}
|
}
|
||||||
|
|
||||||
// Register item definition
|
// Register item definition
|
||||||
|
Loading…
Reference in New Issue
Block a user