diff options
author | orwell96 <orwell@bleipb.de> | 2018-07-17 21:21:21 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2018-07-17 21:21:21 +0200 |
commit | a386f4ce5b9a21c4ad9abd2ebfc77ba1835d7ec9 (patch) | |
tree | f87e06a5891b35bbcf06df1c17a1c459253bad5c /advtrains/digtron.lua | |
parent | f84103959ba706260556dc55c5eb90aa7dac1b4d (diff) | |
parent | 5ec5660751d0c2bf7806308c54ac37d067aa7b04 (diff) | |
download | advtrains-a386f4ce5b9a21c4ad9abd2ebfc77ba1835d7ec9.tar.gz advtrains-a386f4ce5b9a21c4ad9abd2ebfc77ba1835d7ec9.tar.bz2 advtrains-a386f4ce5b9a21c4ad9abd2ebfc77ba1835d7ec9.zip |
Merge branch 'master' of bananach.space:advtrains
Diffstat (limited to 'advtrains/digtron.lua')
-rw-r--r-- | advtrains/digtron.lua | 25 |
1 files changed, 0 insertions, 25 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 |