forked from minetest-mods/moreblocks
Workaround to fix node orientation (minetest >= 0.4.17.1)
This commit is contained in:
parent
5fc5fce74e
commit
3cbc708742
@ -57,6 +57,11 @@ for _, name in pairs(default_nodes) do
|
|||||||
local ndef = table.copy(minetest.registered_nodes[nodename])
|
local ndef = table.copy(minetest.registered_nodes[nodename])
|
||||||
ndef.sunlight_propagates = true
|
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.
|
-- Stone and desert_stone drop cobble and desert_cobble respectively.
|
||||||
if type(ndef.drop) == "string" then
|
if type(ndef.drop) == "string" then
|
||||||
ndef.drop = ndef.drop:gsub(".+:", "")
|
ndef.drop = ndef.drop:gsub(".+:", "")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user