From ee77cf77751e74b29f7120c79a8996f9b0efeeb4 Mon Sep 17 00:00:00 2001 From: unknown <24964441+wsor4035@users.noreply.github.com> Date: Sun, 1 May 2022 21:11:04 -0400 Subject: [PATCH] add fluxionary scope creep --- homedecor_common/registration.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/homedecor_common/registration.lua b/homedecor_common/registration.lua index cf87c709..0208c972 100644 --- a/homedecor_common/registration.lua +++ b/homedecor_common/registration.lua @@ -46,9 +46,12 @@ function homedecor.register(name, original_def) if expand then -- dissallow rotating only half the expanded node by default -- unless we know better - def.on_rotate = def.on_rotate or - (minetest.get_modpath("screwdriver") and (def.mesh and expand.top and screwdriver.rotate_simple) or - minetest.get_modpath("screwdriver") and screwdriver.disallow) or nil + def.on_rotate = def.on_rotate or ( + minetest.get_modpath("screwdriver") and ( + (def.mesh and expand.top and screwdriver.rotate_simple) or + screwdriver.disallow + ) + ) def.on_place = def.on_place or function(itemstack, placer, pointed_thing) if expand.top then