summaryrefslogtreecommitdiff
path: root/bee.lua
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2017-02-21 15:23:03 +0000
committerTenPlus1 <kinsellaja@yahoo.com>2017-02-21 15:23:03 +0000
commitf7b9339dfc61f5f8b92acc031f797f788d901941 (patch)
tree240d3cdbf1fe1ebe9102f6cf29b5e94faff76b07 /bee.lua
parent08924ee1a3c575e8645d0158738cf96758cbb4d7 (diff)
animals spawn on different grasses if ethereal detected
Diffstat (limited to 'bee.lua')
-rw-r--r--bee.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/bee.lua b/bee.lua
index ce9709d..bb68035 100644
--- a/bee.lua
+++ b/bee.lua
@@ -66,7 +66,6 @@ minetest.register_craftitem(":mobs:honey", {
minetest.register_node(":mobs:beehive", {
description = S("Beehive"),
drawtype = "plantlike",
- visual_scale = 1.0,
tiles = {"mobs_beehive.png"},
inventory_image = "mobs_beehive.png",
paramtype = "light",
@@ -175,7 +174,7 @@ minetest.register_abm({
-- is hive full?
local meta = minetest.get_meta(pos)
if not meta then return end -- for older beehives
- local inv = minetest.get_meta(pos):get_inventory()
+ local inv = meta:get_inventory()
local honey = inv:get_stack("beehive", 1):get_count()
-- is hive full?