diff options
author | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-03-31 13:00:29 -0400 |
---|---|---|
committer | Vanessa Ezekowitz <vanessaezekowitz@gmail.com> | 2017-03-31 13:00:29 -0400 |
commit | 02c000610d3e78d6f8a5fa58115e8fcd83f3d97b (patch) | |
tree | 728089e1aad857b8eed41225b6c6d8610478babb | |
parent | 2fa2867eb72593ae37d325352413e3f5c84f252d (diff) | |
download | dreambuilder_modpack-02c000610d3e78d6f8a5fa58115e8fcd83f3d97b.tar dreambuilder_modpack-02c000610d3e78d6f8a5fa58115e8fcd83f3d97b.tar.gz dreambuilder_modpack-02c000610d3e78d6f8a5fa58115e8fcd83f3d97b.tar.bz2 dreambuilder_modpack-02c000610d3e78d6f8a5fa58115e8fcd83f3d97b.tar.xz dreambuilder_modpack-02c000610d3e78d6f8a5fa58115e8fcd83f3d97b.zip |
update homedecor
-rw-r--r-- | homedecor/handlers/expansion.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/homedecor/handlers/expansion.lua b/homedecor/handlers/expansion.lua index 9028f3e..2c9b7dd 100644 --- a/homedecor/handlers/expansion.lua +++ b/homedecor/handlers/expansion.lua @@ -237,7 +237,7 @@ function homedecor.bed_expansion(pos, placer, itemstack, pointed_thing, trybunks local newparam2 = param2 % 8 if inv:contains_item("main", lastdye) then minetest.set_node(toppos, { name = thisnode.name, param2 = param2}) - inv:remove_item("main", lastdye.." 1") + if lastdye then inv:remove_item("main", lastdye.." 1") end else minetest.set_node(toppos, { name = thisnode.name, param2 = newparam2}) minetest.chat_send_player(placer_name, "Ran out of "..lastdye..", using neutral color.") |