diff options
author | TenPlus1 <kinsellaja@yahoo.com> | 2018-03-04 14:40:24 +0000 |
---|---|---|
committer | TenPlus1 <kinsellaja@yahoo.com> | 2018-03-04 14:40:24 +0000 |
commit | f2699613e2d7abcad053577c7f4cc3172000c738 (patch) | |
tree | 1940c8df3e796eb4da89d80b357f8fe1db73e51f /bee.lua | |
parent | f9e1b5880cf74c4b2beb0397092ec5a0c4e2ebee (diff) |
limit spawning animals to 200 high
Diffstat (limited to 'bee.lua')
-rw-r--r-- | bee.lua | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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}) |