mirror of
https://github.com/Sokomine/cottages.git
synced 2024-12-28 03:30:35 +01:00
small bugfix
This commit is contained in:
parent
0eca84e0d4
commit
5b6ed3b003
@ -187,7 +187,7 @@ minetest.register_node("cottages:water_gen", {
|
||||
end,
|
||||
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||
local meta = minetest.get_meta(pos)
|
||||
if not(stack) or not cottages.player_can_use(meta, player:get_player_name()) then
|
||||
if not(stack) or not cottages.player_can_use(meta, player) then
|
||||
return 0
|
||||
end
|
||||
local inv = meta:get_inventory()
|
||||
@ -201,7 +201,7 @@ minetest.register_node("cottages:water_gen", {
|
||||
return stack:get_count()
|
||||
end,
|
||||
allow_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||
if not(cottages.player_can_use(meta:get_string(pos), player:get_player_name())) then
|
||||
if not(cottages.player_can_use(meta:get_string(pos), player)) then
|
||||
return 0
|
||||
end
|
||||
return stack:get_count()
|
||||
|
Loading…
Reference in New Issue
Block a user