summaryrefslogtreecommitdiff
path: root/bee.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2018-03-04 14:40:24 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2018-03-04 14:40:24 +0000
commitf2699613e2d7abcad053577c7f4cc3172000c738 (patch)
tree1940c8df3e796eb4da89d80b357f8fe1db73e51f /bee.lua
parentf9e1b5880cf74c4b2beb0397092ec5a0c4e2ebee (diff)
limit spawning animals to 200 high
Diffstat (limited to 'bee.lua')
-rw-r--r--bee.lua3
1 files changed, 2 insertions, 1 deletions
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})