Skip to content
Permalink
Browse files

Allow non-players to dig bones.

  • Loading branch information
MT-Modder authored and paramat committed Mar 3, 2016
1 parent 3a98245 commit 0410b5e0ca6d0f2ff58171b3f1a88e7f5996060d
Showing with 5 additions and 1 deletion.
  1. +5 −1 mods/bones/init.lua
@@ -43,7 +43,11 @@ minetest.register_node("bones:bones", {

can_dig = function(pos, player)
local inv = minetest.get_meta(pos):get_inventory()
return is_owner(pos, player:get_player_name()) and inv:is_empty("main")
local name = ""
if player then
name = player:get_player_name()
end
return is_owner(pos, name) and inv:is_empty("main")
end,

allow_metadata_inventory_move = function(pos, from_list, from_index, to_list, to_index, count, player)

0 comments on commit 0410b5e

Please sign in to comment.