mirror of
https://github.com/minetest-mods/moreblocks.git
synced 2025-06-30 23:20:44 +02:00
Workaround to fix node orientation (minetest >= 0.4.17.1)
This commit is contained in:
@ -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(".+:", "")
|
||||||
|
Reference in New Issue
Block a user