Skip to content

Commit 717553c

Browse files
authored
Make bar light and ceiling light not block trains (#9)
to be able to use them together with [advtrains] in narrow train tunnels or stations
1 parent 859af59 commit 717553c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

morelights_modern/init.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ minetest.register_node("morelights_modern:barlight_c", {
131131
paramtype = "light",
132132
sunlight_propagates = true,
133133
light_source = minetest.LIGHT_MAX,
134-
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1},
134+
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1, not_blocking_trains = 1},
135135
_mcl_hardness = 0.15,
136136
sounds = morelights.sounds.glass
137137
})
@@ -153,7 +153,7 @@ minetest.register_node("morelights_modern:barlight_s", {
153153
paramtype2 = "facedir",
154154
sunlight_propagates = true,
155155
light_source = minetest.LIGHT_MAX,
156-
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1},
156+
groups = {cracky = 2, oddly_breakable_by_hand = 3, handy = 1, not_blocking_trains = 1},
157157
_mcl_hardness = 0.15,
158158
sounds = morelights.sounds.glass
159159
})
@@ -173,7 +173,7 @@ minetest.register_node("morelights_modern:ceilinglight", {
173173
paramtype2 = "facedir",
174174
sunlight_propagates = true,
175175
light_source = minetest.LIGHT_MAX,
176-
groups = {cracky = 3, oddly_breakable_by_hand = 3, handy = 1},
176+
groups = {cracky = 3, oddly_breakable_by_hand = 3, handy = 1, not_blocking_trains = 1},
177177
_mcl_hardness = 0.2,
178178
sounds = morelights.sounds.glass,
179179

0 commit comments

Comments
 (0)