Skip to content

Commit

Permalink
properly use minetest.is_protected(pos, *name*)
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Apr 23, 2020
1 parent 0517f80 commit 6c8b06e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mobs_animal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local S = mobs.intllib

minetest.override_item("mobs:beehive", {
on_dig = function(pos, node, digger)
if minetest.is_protected(pos, digger) then
if digger and minetest.is_protected(pos, digger:get_player_name()) then
return
end
local meta = minetest.get_meta(pos)
Expand Down

0 comments on commit 6c8b06e

Please sign in to comment.