summaryrefslogtreecommitdiff
path: root/cottages/nodes_water.lua
diff options
context:
space:
mode:
Diffstat (limited to 'cottages/nodes_water.lua')
-rw-r--r--cottages/nodes_water.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/cottages/nodes_water.lua b/cottages/nodes_water.lua
index c2bb118..44e4119 100644
--- a/cottages/nodes_water.lua
+++ b/cottages/nodes_water.lua
@@ -202,7 +202,8 @@ 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)) then
+ local meta = minetest.get_meta(pos)
+ if not(cottages.player_can_use(meta, player)) then
return 0
end
return stack:get_count()