From f2699613e2d7abcad053577c7f4cc3172000c738 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 4 Mar 2018 14:40:24 +0000 Subject: limit spawning animals to 200 high --- bee.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bee.lua') diff --git a/bee.lua b/bee.lua index 782cd4a..a0bcd82 100644 --- a/bee.lua +++ b/bee.lua @@ -50,6 +50,7 @@ mobs:spawn({ min_light = 10, chance = 9000, min_height = 0, + max_height = 200, day_toggle = true, }) @@ -93,7 +94,7 @@ minetest.register_node(":mobs:beehive", { after_place_node = function(pos, placer, itemstack) - if placer:is_player() then + if placer and placer:is_player() then minetest.set_node(pos, {name = "mobs:beehive", param2 = 1}) -- cgit v1.2.3