pass outlet position to particle handler as a table rather than separate vars

This commit is contained in:
Vanessa Ezekowitz
2015-05-10 22:34:30 -04:00
parent b5433d8c39
commit e010bdeb27
3 changed files with 6 additions and 12 deletions

View File

@ -119,9 +119,7 @@ homedecor.register("kitchen_faucet", {
below.name == "homedecor:sink" or
below.name == "homedecor:kitchen_cabinet_with_sink" then
local particledef = {
outlet_x = 0,
outlet_y = -0.19,
outlet_z = 0.13,
outlet = { x = 0, y = -0.19, z = 0.13 },
velocity_x = { min = -0.05, max = 0.05 },
velocity_y = -0.3,
velocity_z = { min = -0.1, max = 0 },