From 3cbc708742585154ce5e7490457fbc831ca1245a Mon Sep 17 00:00:00 2001 From: sys4-fr Date: Fri, 24 Aug 2018 18:55:14 +0200 Subject: [PATCH] Workaround to fix node orientation (minetest >= 0.4.17.1) --- stairsplus/registrations.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/stairsplus/registrations.lua b/stairsplus/registrations.lua index dc89234..0fa92b2 100644 --- a/stairsplus/registrations.lua +++ b/stairsplus/registrations.lua @@ -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(".+:", "")