oops, max light is 14 not 15
This commit is contained in:
parent
211a794851
commit
1fb99b3cb3
@ -1,6 +1,6 @@
|
|||||||
-- mob spawner
|
-- mob spawner
|
||||||
|
|
||||||
local spawner_default = "mobs:pumba 10 15 0"
|
local spawner_default = "mobs:pumba 10 14 0"
|
||||||
|
|
||||||
minetest.register_node("mobs:spawner", {
|
minetest.register_node("mobs:spawner", {
|
||||||
tiles = {"mob_spawner.png"},
|
tiles = {"mob_spawner.png"},
|
||||||
@ -46,8 +46,8 @@ minetest.register_node("mobs:spawner", {
|
|||||||
|
|
||||||
if mob and mob ~= ""
|
if mob and mob ~= ""
|
||||||
and num and num >= 0 and num <= 10
|
and num and num >= 0 and num <= 10
|
||||||
and mlig and mlig >= 0 and mlig <= 15
|
and mlig and mlig >= 0 and mlig <= 14
|
||||||
and xlig and xlig >= 0 and xlig <= 15 then
|
and xlig and xlig >= 0 and xlig <= 14 then
|
||||||
|
|
||||||
meta:set_string("command", fields.text)
|
meta:set_string("command", fields.text)
|
||||||
meta:set_string("infotext", "Spawner Active (" .. mob .. ")")
|
meta:set_string("infotext", "Spawner Active (" .. mob .. ")")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user