From 0f134426e85520bc96efed3068279490f3aff0aa Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Mon, 11 Feb 2019 20:03:56 +0100 Subject: [PATCH] Fix protection-related crash when taking liquid --- mods/ITEMS/mcl_buckets/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mods/ITEMS/mcl_buckets/init.lua b/mods/ITEMS/mcl_buckets/init.lua index f05d725c2..c5b45c4d4 100644 --- a/mods/ITEMS/mcl_buckets/init.lua +++ b/mods/ITEMS/mcl_buckets/init.lua @@ -205,7 +205,7 @@ minetest.register_craftitem("mcl_buckets:bucket_empty", { end -- Can't steal liquids - if minetest.is_protected(pointed_thing.above, pointed_thing.under) then + if minetest.is_protected(pointed_thing.above, user:get_player_name()) then minetest.record_protection_violation(pointed_thing.under, user:get_player_name()) return itemstack end