don't use string.find() where == will do.

This commit is contained in:
Vanessa Ezekowitz
2015-05-10 22:30:53 -04:00
parent 3621d35bfd
commit b5433d8c39
2 changed files with 6 additions and 6 deletions

View File

@ -116,8 +116,8 @@ homedecor.register("kitchen_faucet", {
on_rightclick = function(pos, node, clicker)
local below = minetest.get_node_or_nil({x=pos.x, y=pos.y-1, z=pos.z})
if below and
string.find(below.name, "homedecor:sink") or
string.find(below.name, "homedecor:kitchen_cabinet_with_sink") then
below.name == "homedecor:sink" or
below.name == "homedecor:kitchen_cabinet_with_sink" then
local particledef = {
outlet_x = 0,
outlet_y = -0.19,