From ef45a8e14855a5631db8eab3712b0ae594a977ad Mon Sep 17 00:00:00 2001 From: sfan5 Date: Mon, 4 May 2020 19:20:01 +0200 Subject: [PATCH] doors: Remove unnecessary nodebox and empty texture (#2662) --- mods/doors/init.lua | 12 ++---------- mods/doors/textures/doors_blank.png | Bin 95 -> 0 bytes 2 files changed, 2 insertions(+), 10 deletions(-) delete mode 100644 mods/doors/textures/doors_blank.png diff --git a/mods/doors/init.lua b/mods/doors/init.lua index 08b650f3..2048a643 100644 --- a/mods/doors/init.lua +++ b/mods/doors/init.lua @@ -78,9 +78,7 @@ end -- nodes from being placed in the top half of the door. minetest.register_node("doors:hidden", { description = S("Hidden Door Segment"), - -- can't use airlike otherwise falling nodes will turn to entities - -- and will be forever stuck until door is removed. - drawtype = "nodebox", + drawtype = "airlike", paramtype = "light", paramtype2 = "facedir", sunlight_propagates = true, @@ -93,13 +91,7 @@ minetest.register_node("doors:hidden", { drop = "", groups = {not_in_creative_inventory = 1}, on_blast = function() end, - tiles = {"doors_blank.png"}, - -- 1px transparent block inside door hinge near node top. - node_box = { - type = "fixed", - fixed = {-15/32, 13/32, -15/32, -13/32, 1/2, -13/32}, - }, - -- collision_box needed otherise selection box would be full node size + -- 1px block inside door hinge near node top collision_box = { type = "fixed", fixed = {-15/32, 13/32, -15/32, -13/32, 1/2, -13/32}, diff --git a/mods/doors/textures/doors_blank.png b/mods/doors/textures/doors_blank.png deleted file mode 100644 index 1914264c08781d1f30ee0b8482bccf44586f2dc1..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 95 zcmeAS@N?(olHy`uVBq!ia0vp^j3CU&3?x-=hn)ga%mF?ju0VQumF+E%TuG2$FoVOh l8)-lem#2$k2*>s01R$Gz9%CSj!PC{xWt~$(697H@6ZHT9 -- 2.25.1