Fix infinite fishbucket placement in survival/creative

This commit is contained in:
cora 2022-11-26 04:10:52 +01:00
parent e134cc5e65
commit 66322a873b
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ local function on_place_fish(itemstack, placer, pointed_thing)
if water then
minetest.set_node(pos,{name = water})
end
if not placer or minetest.is_creative_enabled(placer:get_player_name()) then
if not placer or not minetest.is_creative_enabled(placer:get_player_name()) then
itemstack:set_name("mcl_buckets:bucket_empty")
end
end