summaryrefslogtreecommitdiff
path: root/bee.lua
diff options
context:
space:
mode:
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?