Workaround to fix node orientation (minetest >= 0.4.17.1)

This commit is contained in:
sys4-fr 2018-08-24 18:55:14 +02:00
parent 5fc5fce74e
commit 3cbc708742
1 changed files with 5 additions and 0 deletions

View File

@ -57,6 +57,11 @@ for _, name in pairs(default_nodes) do
local ndef = table.copy(minetest.registered_nodes[nodename])
ndef.sunlight_propagates = true
-- Workaround to fix node orientation (minetest >= 0.4.17.1)
if ndef.place_param2 == 0 then
ndef.place_param2 = nil
end
-- Stone and desert_stone drop cobble and desert_cobble respectively.
if type(ndef.drop) == "string" then
ndef.drop = ndef.drop:gsub(".+:", "")