From 76601aaeac643ab245d2e9ffb08983c8f0b204bc Mon Sep 17 00:00:00 2001 From: Luke aka SwissalpS Date: Thu, 29 Feb 2024 11:01:47 +0100 Subject: [PATCH] clocks aren't ground content also some minor whitespace indent fixes --- ontime_clocks/nodes.lua | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/ontime_clocks/nodes.lua b/ontime_clocks/nodes.lua index 107d2e9..10e2537 100644 --- a/ontime_clocks/nodes.lua +++ b/ontime_clocks/nodes.lua @@ -36,6 +36,7 @@ minetest.register_node("ontime_clocks:green_digital", { }, tiles = {"ontime_clocks_digital.png"}, groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1}, + is_ground_content = false, display_entities = { ["ontime_clocks:display"] = { depth = 13/32 - 0.01, @@ -43,7 +44,8 @@ minetest.register_node("ontime_clocks:green_digital", { objref:set_properties( ontime_clocks.get_digital_properties( "#040", "#0F0", ontime_clocks.get_h24(), ontime_clocks.get_m12())) - end }, + end + }, }, on_place = display_api.on_place, on_construct = display_api.on_construct, @@ -74,6 +76,7 @@ minetest.register_node("ontime_clocks:red_digital", { }, tiles = {"ontime_clocks_digital.png"}, groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1}, + is_ground_content = false, display_entities = { ["ontime_clocks:display"] = { depth = 13/32 - 0.01, @@ -81,7 +84,8 @@ minetest.register_node("ontime_clocks:red_digital", { objref:set_properties( ontime_clocks.get_digital_properties( "#400", "#F00", ontime_clocks.get_h24(), ontime_clocks.get_m12())) - end }, + end + }, }, on_place = display_api.on_place, on_construct = display_api.on_construct, @@ -112,6 +116,7 @@ minetest.register_node("ontime_clocks:white", { }, tiles = {"ontime_clocks_white.png"}, groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1}, + is_ground_content = false, display_entities = { ["ontime_clocks:display"] = { depth = 6/16 - 0.01, @@ -119,7 +124,8 @@ minetest.register_node("ontime_clocks:white", { objref:set_properties( ontime_clocks.get_needles_properties( "#000", 36, ontime_clocks.get_h12(), ontime_clocks.get_m12())) - end }, + end + }, }, on_place = display_api.on_place, on_construct = display_api.on_construct, @@ -149,6 +155,7 @@ minetest.register_node("ontime_clocks:frameless_black", { }, tiles = {"ontime_clocks_frameless.png"}, groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1}, + is_ground_content = false, display_entities = { ["ontime_clocks:display"] = { depth = 7/16, @@ -156,7 +163,8 @@ minetest.register_node("ontime_clocks:frameless_black", { objref:set_properties( ontime_clocks.get_needles_properties( "#000", 48, ontime_clocks.get_h12(), ontime_clocks.get_m12())) - end }, + end + }, }, on_place = display_api.on_place, on_construct = display_api.on_construct, @@ -186,6 +194,7 @@ minetest.register_node("ontime_clocks:frameless_gold", { }, tiles = {"ontime_clocks_frameless.png^[colorize:#FF0"}, groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1}, + is_ground_content = false, display_entities = { ["ontime_clocks:display"] = { depth = 7/16, @@ -193,7 +202,8 @@ minetest.register_node("ontime_clocks:frameless_gold", { objref:set_properties( ontime_clocks.get_needles_properties( "#FF0", 48, ontime_clocks.get_h12(), ontime_clocks.get_m12())) - end }, + end + }, }, on_place = display_api.on_place, on_construct = display_api.on_construct, @@ -223,6 +233,7 @@ minetest.register_node("ontime_clocks:frameless_white", { }, tiles = {"ontime_clocks_frameless.png^[colorize:#FFF"}, groups = {oddly_breakable_by_hand=1, not_blocking_trains=1, display_api=1}, + is_ground_content = false, display_entities = { ["ontime_clocks:display"] = { depth = 7/16, @@ -230,7 +241,8 @@ minetest.register_node("ontime_clocks:frameless_white", { objref:set_properties( ontime_clocks.get_needles_properties( "#FFF", 48, ontime_clocks.get_h12(), ontime_clocks.get_m12())) - end }, + end + }, }, on_place = display_api.on_place, on_construct = display_api.on_construct,