mirror of
https://github.com/minetest-mods/digtron.git
synced 2024-11-19 21:33:43 +01:00
prevent default on_place from screwing everything up.
This commit is contained in:
parent
d480b9bf2f
commit
c801e59942
@ -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}
|
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.
|
-- 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
|
if def.paramtype2 == "facedir" then
|
||||||
pointed_thing.under = vector.add(place_to, minetest.facedir_to_dir(param2))
|
pointed_thing.under = vector.add(place_to, minetest.facedir_to_dir(param2))
|
||||||
elseif def.paramtype2 == "wallmounted" then
|
elseif def.paramtype2 == "wallmounted" then
|
||||||
|
Loading…
Reference in New Issue
Block a user