Fix error-prone negation in mcl_doors
This commit is contained in:
parent
bdc7759e13
commit
6060ec5d96
@ -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()
|
||||
|
Loading…
x
Reference in New Issue
Block a user