aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel PĂ©rez-Cerezo <gabriel@gpcf.eu>2018-06-19 10:45:14 +0200
committerorwell96 <orwell@bleipb.de>2018-08-12 17:51:09 +0200
commitffc3cf9d10b705dd258d5f57fcee768e3eef02bf (patch)
tree56e0e0392c1af673555448da472b14b2bf87d3b7
parenta7bb207007970620494393885bfa4ae01c23865b (diff)
downloadadvtrains-ffc3cf9d10b705dd258d5f57fcee768e3eef02bf.tar.gz
advtrains-ffc3cf9d10b705dd258d5f57fcee768e3eef02bf.tar.bz2
advtrains-ffc3cf9d10b705dd258d5f57fcee768e3eef02bf.zip
Remove redundant digtron.lua file
-rw-r--r--advtrains/digtron.lua25
-rw-r--r--advtrains/init.lua3
2 files changed, 0 insertions, 28 deletions
diff --git a/advtrains/digtron.lua b/advtrains/digtron.lua
deleted file mode 100644
index 7105a54..0000000
--- a/advtrains/digtron.lua
+++ /dev/null
@@ -1,25 +0,0 @@
---digtron.lua
---make tracks placeable by digtrons by overriding the place function.
-
-local old_item_place = digtron.item_place_node
-
-digtron.item_place_node = function(itemstack, placer, place_to, param2)
- if minetest.get_item_group(itemstack:get_name(), "advtrains_trackplacer")>0 then
- return advtrains.pcall(function()
- local def = minetest.registered_items[itemstack:get_name()]
- if not def then return itemstack, false end
-
- local pointed_thing = {}
- pointed_thing.type = "node"
- pointed_thing.above = {x=place_to.x, y=place_to.y, z=place_to.z}
- pointed_thing.under = {x=place_to.x, y=place_to.y - 1, z=place_to.z}
-
- --call the on_rightclick callback
- local success
- itemstack, success = def.on_place(itemstack, placer, pointed_thing)
- return itemstack, success
- end)
- else
- return old_item_place(itemstack, placer, place_to, param2)
- end
-end
diff --git a/advtrains/init.lua b/advtrains/init.lua
index cf9d261..2037ef1 100644
--- a/advtrains/init.lua
+++ b/advtrains/init.lua
@@ -173,9 +173,6 @@ dofile(advtrains.modpath.."/craft_items.lua")
dofile(advtrains.modpath.."/log.lua")
-if minetest.global_exists("digtron") then
- dofile(advtrains.modpath.."/digtron.lua")
-end
--load/save