From a4b89dd76280879a6fca9f97d9e2d0b97718f60c Mon Sep 17 00:00:00 2001 From: FaceDeer Date: Tue, 24 Oct 2017 21:16:37 -0600 Subject: [PATCH] add node_box definitions to fix inventory images --- nodes/node_battery_holder.lua | 6 ++++++ nodes/node_storage.lua | 18 ++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/nodes/node_battery_holder.lua b/nodes/node_battery_holder.lua index 56e0cd8..697beea 100644 --- a/nodes/node_battery_holder.lua +++ b/nodes/node_battery_holder.lua @@ -39,6 +39,12 @@ minetest.register_node("digtron:battery_holder", { sounds = digtron.metal_sounds, paramtype2= "facedir", drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, + }, + }, paramtype = "light", is_ground_content = false, tiles = { diff --git a/nodes/node_storage.lua b/nodes/node_storage.lua index ad36570..6237e66 100644 --- a/nodes/node_storage.lua +++ b/nodes/node_storage.lua @@ -33,6 +33,12 @@ minetest.register_node("digtron:inventory", { sounds = digtron.metal_sounds, paramtype2= "facedir", drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, + }, + }, paramtype = "light", is_ground_content = false, tiles = { @@ -108,6 +114,12 @@ minetest.register_node("digtron:fuelstore", { sounds = digtron.metal_sounds, paramtype2= "facedir", drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, + }, + }, paramtype = "light", is_ground_content = false, tiles = { @@ -202,6 +214,12 @@ minetest.register_node("digtron:combined_storage", { sounds = digtron.metal_sounds, paramtype2= "facedir", drawtype = "nodebox", + node_box = { + type = "fixed", + fixed = { + {-0.5, -0.5, -0.5, 0.5, 0.5, 0.5}, + }, + }, paramtype = "light", is_ground_content = false, tiles = {