fixed locks bug
This commit is contained in:
parent
0f3adb7db8
commit
b4d5e4f854
@ -136,21 +136,21 @@ minetest.register_node(
|
|||||||
if locks.is_locked(meta, player) then
|
if locks.is_locked(meta, player) then
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
return stack:get_count()
|
return cnt
|
||||||
end,
|
end,
|
||||||
allow_metadata_inventory_put = function(pos, listname, index, itemstack, player)
|
allow_metadata_inventory_put = function(pos, listname, index, itemstack, player)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
if locks.is_locked(meta, player) then
|
if locks.is_locked(meta, player) then
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
return stack:get_count()
|
return itemstack:get_count()
|
||||||
end,
|
end,
|
||||||
allow_metadata_inventory_take = function(pos, listname, index, itemstack, player)
|
allow_metadata_inventory_take = function(pos, listname, index, itemstack, player)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
if locks.is_locked(meta, player) then
|
if locks.is_locked(meta, player) then
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
return stack:get_count()
|
return itemstack:get_count()
|
||||||
end,
|
end,
|
||||||
can_dig = function(pos, player)
|
can_dig = function(pos, player)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
|
Loading…
Reference in New Issue
Block a user