diff options
author | FaceDeer <derksenmobile@gmail.com> | 2017-10-15 12:46:03 -0600 |
---|---|---|
committer | FaceDeer <derksenmobile@gmail.com> | 2017-10-15 12:46:03 -0600 |
commit | fec29263b0302ee9efc747e6e50aa9847d5c88f3 (patch) | |
tree | b879daacb9563b919013f5343963ba858d4628d2 | |
parent | 3393d44c3b0b9009d786cc12513e4d5f54f6ecbb (diff) |
remove unnecessary fallback, the default is already safe
-rw-r--r-- | util_item_place_node.lua | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/util_item_place_node.lua b/util_item_place_node.lua index 75565b1..77c499b 100644 --- a/util_item_place_node.lua +++ b/util_item_place_node.lua @@ -74,9 +74,6 @@ digtron.item_place_node = function(itemstack, placer, place_to, param2) pointed_thing.under = vector.add(place_to, minetest.facedir_to_dir(param2)) elseif def.paramtype2 == "wallmounted" then pointed_thing.under = vector.add(place_to, minetest.wallmounted_to_dir(param2)) - else - minetest.log("error", "[digtron] the node " .. itemstack:get_name() .. " had an unrecognized paramtype2, " .. dump(def.paramtype2)) - pointed_thing.under = {x=place_to.x, y=place_to.y - 1, z=place_to.z} end -- pass a copy of the item stack parameter because on_place might modify it directly and then we can't tell if we succeeded or not |