fix collision box on oil lamp

This commit is contained in:
Vanessa Ezekowitz 2015-04-17 06:11:05 -04:00
parent 015243e307
commit c2575df10c

View File

@ -211,6 +211,13 @@ homedecor.register("wall_sconce", {
light_source = LIGHT_MAX-4, light_source = LIGHT_MAX-4,
}) })
local ol_cbox = {
type = "fixed",
fixed = {
{ -5/16, -8/16, -3/16, 5/16, 4/16, 3/16 },
}
}
homedecor.register("oil_lamp", { homedecor.register("oil_lamp", {
description = S("Oil lamp"), description = S("Oil lamp"),
mesh = "homedecor_oil_lamp.obj", mesh = "homedecor_oil_lamp.obj",
@ -223,12 +230,8 @@ homedecor.register("oil_lamp", {
}, },
inventory_image = "homedecor_oil_lamp_inv.png", inventory_image = "homedecor_oil_lamp_inv.png",
sunlight_propagates = true, sunlight_propagates = true,
selection_box = { selection_box = ol_cbox,
type = "fixed", collision_box = ol_cbox,
fixed = {
{ -5/16, -8/16, -3/16, 5/16, 4/16, 3/16 },
}
},
groups = { snappy = 3 }, groups = { snappy = 3 },
light_source = LIGHT_MAX-3, light_source = LIGHT_MAX-3,
sounds = default.node_sound_wood_defaults(), sounds = default.node_sound_wood_defaults(),