add placement hinting to the swing (currently used during smoketesting to avoid false positives)

This commit is contained in:
Tim 2015-09-10 10:29:00 +02:00
parent ffeac9a1bd
commit 3555a6ae57

View File

@ -241,6 +241,9 @@ homedecor.register("swing", {
type = "fixed", type = "fixed",
fixed = { -0.3125, 0.33, -0.125, 0.3125, 0.5, 0.1875 } fixed = { -0.3125, 0.33, -0.125, 0.3125, 0.5, 0.1875 }
}, },
hint = {
place_on = "bottom"
},
on_place = function(itemstack, placer, pointed_thing) on_place = function(itemstack, placer, pointed_thing)
local isceiling, pos = homedecor.find_ceiling(itemstack, placer, pointed_thing) local isceiling, pos = homedecor.find_ceiling(itemstack, placer, pointed_thing)
if isceiling then if isceiling then