Commit 225bc22f authored by Milan's avatar Milan
Browse files

fix crash on punch

parent 530160f9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -55,7 +55,7 @@ xdecor.register("hive", {
		local inv = minetest.get_meta(pos):get_inventory()
		return inv:is_empty("honey")
	end,
	on_punch = function(_, _, puncher)
	on_punch = function(pos, node, puncher)
        if math.random(1, 4) == 1 then
            minetest.add_entity(pos, "mobs_animal:bee_angry")
        end