mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2025-01-11 01:29:36 +01:00
Fix protection-related crash when taking liquid
This commit is contained in:
parent
f985aab191
commit
0f134426e8
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue