fixed bug
This commit is contained in:
parent
ddafb51c10
commit
43eabc2f27
|
@ -202,7 +202,8 @@ minetest.register_node("cottages:water_gen", {
|
||||||
return stack:get_count()
|
return stack:get_count()
|
||||||
end,
|
end,
|
||||||
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
|
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||||
if not(cottages.player_can_use(meta:get_string(pos), player)) then
|
local meta = minetest.get_meta(pos)
|
||||||
|
if not(cottages.player_can_use(meta, player)) then
|
||||||
return 0
|
return 0
|
||||||
end
|
end
|
||||||
return stack:get_count()
|
return stack:get_count()
|
||||||
|
|
Loading…
Reference in New Issue