Skip to content
Snippets Groups Projects
Unverified Commit ef45a8e1 authored by sfan5's avatar sfan5 Committed by GitHub
Browse files

doors: Remove unnecessary nodebox and empty texture (#2662)

parent d88e5510
No related branches found
No related tags found
No related merge requests found
...@@ -78,9 +78,7 @@ end ...@@ -78,9 +78,7 @@ end
-- nodes from being placed in the top half of the door. -- nodes from being placed in the top half of the door.
minetest.register_node("doors:hidden", { minetest.register_node("doors:hidden", {
description = S("Hidden Door Segment"), description = S("Hidden Door Segment"),
-- can't use airlike otherwise falling nodes will turn to entities drawtype = "airlike",
-- and will be forever stuck until door is removed.
drawtype = "nodebox",
paramtype = "light", paramtype = "light",
paramtype2 = "facedir", paramtype2 = "facedir",
sunlight_propagates = true, sunlight_propagates = true,
...@@ -93,13 +91,7 @@ minetest.register_node("doors:hidden", { ...@@ -93,13 +91,7 @@ minetest.register_node("doors:hidden", {
drop = "", drop = "",
groups = {not_in_creative_inventory = 1}, groups = {not_in_creative_inventory = 1},
on_blast = function() end, on_blast = function() end,
tiles = {"doors_blank.png"}, -- 1px block inside door hinge near node top
-- 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
collision_box = { collision_box = {
type = "fixed", type = "fixed",
fixed = {-15/32, 13/32, -15/32, -13/32, 1/2, -13/32}, fixed = {-15/32, 13/32, -15/32, -13/32, 1/2, -13/32},
......
mods/doors/textures/doors_blank.png

95 B

0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment