Fix error-prone negation in mcl_doors

This commit is contained in:
cora 2023-11-28 06:46:22 +01:00
parent bdc7759e13
commit 6060ec5d96

View File

@ -107,7 +107,7 @@ function mcl_doors:register_door(name, def)
inventory_image = def.inventory_image,
groups = craftitem_groups,
on_place = function(itemstack, placer, pointed_thing)
if not pointed_thing.type == "node" or not placer or not placer:is_player() then
if pointed_thing.type ~= "node" or not placer or not placer:is_player() then
return itemstack
end
local pn = placer:get_player_name()