summaryrefslogtreecommitdiff
path: root/teleporter/teleporter.lua
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-09-25 12:59:34 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2016-09-25 12:59:34 +0200
commite0b551b770d469ba52debc8a9390a8e4588c1ff8 (patch)
tree61ace5252da00c8c1c0af7ec64fbce74d854f4c3 /teleporter/teleporter.lua
parent789bb57ebc098087754c42c1e223fbdc6421e119 (diff)
Fix 'infinite supply' bug. Teletporter wan't being removed from inventory when placed.HEADmaster
Diffstat (limited to 'teleporter/teleporter.lua')
-rw-r--r--teleporter/teleporter.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/teleporter/teleporter.lua b/teleporter/teleporter.lua
index a037803..21c90c0 100644
--- a/teleporter/teleporter.lua
+++ b/teleporter/teleporter.lua
@@ -112,6 +112,8 @@ minetest.register_node("teleporter:teleporter",
else
minetest.log('warning', 'Only two teleporters at a time')
end
+
+ return minetest.item_place(itemstack, placer, pointed_thing)
end,
after_place_node =
function(pos, placer, itemstack, pointed_thing)