mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-06-29 22:50:29 +02:00
fix light_source warning, register_node function rewrite light_source to LIGHT_MAX(14) when is greater than LIGHT_MAX
fix use of old var LIGHT_MAX to default.LIGHT_MAX
This commit is contained in:
@ -1,12 +1,11 @@
|
||||
-- glow/init.lua
|
||||
-- mod by john and Zeg9
|
||||
|
||||
LIGHT_MAX = 15
|
||||
|
||||
minetest.register_node("glow:stone", {
|
||||
description = "Glowing stone",
|
||||
tiles = {"glow_stone.png"},
|
||||
light_source = LIGHT_MAX,
|
||||
light_source = default.LIGHT_MAX,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
@ -14,7 +13,7 @@ minetest.register_node("glow:stone", {
|
||||
minetest.register_node("glow:lamp", {
|
||||
description = "Lamp",
|
||||
tiles = {"glow_stone.png^glow_lamp_frame.png"},
|
||||
light_source = LIGHT_MAX,
|
||||
light_source = default.LIGHT_MAX,
|
||||
groups = {cracky=3},
|
||||
sounds = default.node_sound_glass_defaults(),
|
||||
})
|
||||
|
Reference in New Issue
Block a user