From a5942bdf465eb24f460f192e9097d67f24c0ced2 Mon Sep 17 00:00:00 2001 From: orwell96 Date: Thu, 14 Jun 2018 17:48:32 +0200 Subject: REPO NO LONGER UPDATED Moved to http://git.bananach.space/advtrains.git/ --- readme.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/readme.txt b/readme.txt index 110bdef..9e58b15 100644 --- a/readme.txt +++ b/readme.txt @@ -1,4 +1,19 @@ +THIS REPOSITORY IS NO LONGER UPDATED! +===================================== +The new repository for this mod can be found at: +http://git.bananach.space/advtrains.git/ +Please report issues to: +http://mantis.bleipb.de/ (select "advtrains" in the project list) + +This repository will continue to mirror the state of advtrains as it was on 2018/06/14. +Issues and PRs reported here will probably no longer be processed. + + + +================ +Original readme: + ## ADVTRAINS ## realistic trains in Minetest! by orwell96 and contributors(see below) -- cgit v1.2.3 From 816d97e1a6c9b7823ce5bb955f9c62e8627cd098 Mon Sep 17 00:00:00 2001 From: Gabriel Pérez-Cerezo Date: Tue, 19 Jun 2018 10:39:51 +0200 Subject: Make digtron able to build tracks. --- advtrains/trackplacer.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/advtrains/trackplacer.lua b/advtrains/trackplacer.lua index c61bbb4..2628daa 100644 --- a/advtrains/trackplacer.lua +++ b/advtrains/trackplacer.lua @@ -268,7 +268,7 @@ function tp.register_track_placer(nnprefix, imgprefix, dispname) description = dispname, inventory_image = imgprefix.."_placer.png", wield_image = imgprefix.."_placer.png", - groups={advtrains_trackplacer=1}, + groups={advtrains_trackplacer=1, digtron_on_place=1}, on_place = function(itemstack, placer, pointed_thing) return advtrains.pcall(function() local name = placer:get_player_name() -- cgit v1.2.3 From 539051a932be12f85d085fbcc4caa238893976ec Mon Sep 17 00:00:00 2001 From: Gabriel Pérez-Cerezo Date: Tue, 19 Jun 2018 10:42:06 +0200 Subject: Revert "REPO NO LONGER UPDATED" This reverts commit a5942bdf465eb24f460f192e9097d67f24c0ced2. --- readme.txt | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/readme.txt b/readme.txt index 086fe05..883fe6d 100644 --- a/readme.txt +++ b/readme.txt @@ -1,19 +1,4 @@ -THIS REPOSITORY IS NO LONGER UPDATED! -===================================== -The new repository for this mod can be found at: -http://git.bananach.space/advtrains.git/ -Please report issues to: -http://mantis.bleipb.de/ (select "advtrains" in the project list) - -This repository will continue to mirror the state of advtrains as it was on 2018/06/14. -Issues and PRs reported here will probably no longer be processed. - - - -================ -Original readme: - ## ADVTRAINS ## realistic trains in Minetest! by orwell96 and contributors(see below) -- cgit v1.2.3 From 497f3053bba0310c760454a3dc8e5e0f5d500fe7 Mon Sep 17 00:00:00 2001 From: Gabriel Pérez-Cerezo Date: Tue, 19 Jun 2018 10:45:14 +0200 Subject: Remove redundant digtron.lua file --- advtrains/digtron.lua | 25 ------------------------- advtrains/init.lua | 3 --- 2 files changed, 28 deletions(-) delete mode 100644 advtrains/digtron.lua 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 65e5048..32d0a67 100644 --- a/advtrains/init.lua +++ b/advtrains/init.lua @@ -164,9 +164,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 -- cgit v1.2.3 From 5ec5660751d0c2bf7806308c54ac37d067aa7b04 Mon Sep 17 00:00:00 2001 From: h-v-smacker Date: Tue, 17 Jul 2018 15:42:52 +0300 Subject: onboard computer fix --- advtrains/wagons.lua | 2 +- advtrains_train_industrial/init.lua | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/advtrains/wagons.lua b/advtrains/wagons.lua index d9b467c..b0cb4ea 100644 --- a/advtrains/wagons.lua +++ b/advtrains/wagons.lua @@ -579,7 +579,7 @@ function wagon:on_rightclick(clicker) poss[#poss+1]={name=attrans("Show Inventory"), key="inv"} end if self.seat_groups[sgr].driving_ctrl_access and advtrains.check_driving_couple_protection(pname, self.owner, self.whitelist) then - poss[#poss+1]={name=attrans("Bord Computer"), key="bordcom"} + poss[#poss+1]={name=attrans("Onboard Computer"), key="bordcom"} end if self.owner==pname then poss[#poss+1]={name=attrans("Wagon properties"), key="prop"} diff --git a/advtrains_train_industrial/init.lua b/advtrains_train_industrial/init.lua index a60bf74..c654449 100644 --- a/advtrains_train_industrial/init.lua +++ b/advtrains_train_industrial/init.lua @@ -29,9 +29,9 @@ advtrains.register_wagon("engine_industrial", { }, seat_groups = { dstand={ - name = "Driver Stand", access_to = {}, + driving_ctrl_access = true, }, }, assign_to_seat_group = {"dstand"}, @@ -66,9 +66,9 @@ advtrains.register_wagon("engine_industrial_big", { }, seat_groups = { dstand={ - name = "Driver Stand", access_to = {}, + driving_ctrl_access = true, }, }, assign_to_seat_group = {"dstand"}, -- cgit v1.2.3