aboutsummaryrefslogtreecommitdiff
path: root/advtrains_luaautomation
ModeNameSize
-rw-r--r--README.md23077logplain
-rw-r--r--active_common.lua6052logplain
-rwxr-xr-xatc_rail.lua9187logplain
-rw-r--r--chatcmds.lua4713logplain
-rw-r--r--environment.lua10743logplain
-rw-r--r--init.lua3343logplain
-rw-r--r--interrupt.lua1428logplain
-rw-r--r--mesecon_controller.lua7788logplain
-rw-r--r--mod.conf228logplain
-rwxr-xr-xoperation_panel.lua685logplain
-rw-r--r--p_display.lua0logplain
-rw-r--r--passive_api.txt720logplain
-rw-r--r--pcnaming.lua2654logplain
d---------textures498logplain
>resolve_pos(parpos) else pos = advtrains.round_vector_floor_y(parpos) end if type(pos)~="table" or (not pos.x or not pos.y or not pos.z) then debug.sethook() error("Invalid position supplied to getstate") end local node=pnode or advtrains.ndb.get_node(pos) local ndef=minetest.registered_nodes[node.name] local st if ndef and ndef.advtrains and ndef.advtrains.setstate then st=ndef.advtrains.setstate elseif ndef and ndef.luaautomation and ndef.luaautomation.setstate then if not deprecation_warned[node.name] then minetest.log("warning", node.name.." uses deprecated definition of ATLATC functions in the 'luaautomation' field. Please move them to the 'advtrains' field!") end st=ndef.luaautomation.setstate else return nil end if advtrains.get_train_at_pos(pos) then return false end if advtrains.interlocking and advtrains.interlocking.route.has_route_lock(minetest.pos_to_string(pos)) then return false end st(pos, node, newstate) return true end function advtrains.is_passive(parpos, pnode) local pos