summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFaceDeer <derksenmobile@gmail.com>2017-10-15 14:21:30 -0600
committerFaceDeer <derksenmobile@gmail.com>2017-10-15 14:21:30 -0600
commitc801e5994213528667adcbf17b98a3e6e2a53674 (patch)
tree5e1cb2dc047703bc1dc4a110c0e16b53bd83e633
parentd480b9bf2ff9f37a5eb0ba2af772a2aa46c84299 (diff)
prevent default on_place from screwing everything up.
-rw-r--r--util_item_place_node.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/util_item_place_node.lua b/util_item_place_node.lua
index 77c499b..c718c40 100644
--- a/util_item_place_node.lua
+++ b/util_item_place_node.lua
@@ -69,7 +69,7 @@ digtron.item_place_node = function(itemstack, placer, place_to, param2)
pointed_thing.under = {x=place_to.x, y=place_to.y - 1, z=place_to.z}
-- Handle node-specific on_place calls as best we can.
- if def.on_place then
+ if def.on_place and def.on_place ~= minetest.nodedef_default.on_place then
if def.paramtype2 == "facedir" then
pointed_thing.under = vector.add(place_to, minetest.facedir_to_dir(param2))
elseif def.paramtype2 == "wallmounted" then