mirror of
https://github.com/ShadowKatStudios/OC-Minitel.git
synced 2024-11-23 02:28:05 +11:00
more minification
This commit is contained in:
parent
396028d686
commit
a4899c9854
@ -1,6 +1,6 @@
|
||||
_G.net={}
|
||||
do
|
||||
local M,pQ,pC,rC,C={},{},{},{},computer
|
||||
local M,pQ,pC,rC,C,Y={},{},{},{},computer,table.unpack
|
||||
net.port,net.hostname,net.route,U=4096,C.address():sub(1,8),true,C.uptime
|
||||
for a in component.list("modem") do
|
||||
M[a]=component.proxy(a)
|
||||
@ -67,10 +67,10 @@ pC[Z[6]]=U()
|
||||
end
|
||||
for k,v in pairs(pQ) do
|
||||
if U()>v[5] then
|
||||
sP(k,table.unpack(v))
|
||||
sP(k,Y(v))
|
||||
v[5]=U()+30
|
||||
end
|
||||
end
|
||||
return table.unpack(Z)
|
||||
return Y(Z)
|
||||
end
|
||||
end
|
||||
|
@ -1,7 +1,7 @@
|
||||
_G.net={}
|
||||
|
||||
do
|
||||
local modems,packetQueue,packetCache,routeCache,C = {},{},{},{},COMPUTER
|
||||
local modems,packetQueue,packetCache,routeCache,C,Y = {},{},{},{},COMPUTER,UNPACK
|
||||
net.port,net.hostname,net.route,U=4096,computer.address():sub(1,8),true,UPTIME
|
||||
|
||||
for a in component.list("modem") do
|
||||
|
@ -18,8 +18,10 @@ sed -i -e 's/realComputerPullSignal/rCPE/g' microtel-3-mini.lua
|
||||
sed -i -e 's/packetQueue/pQ/g' microtel-3-mini.lua
|
||||
sed -i -e 's/computer/C/g' microtel-3-mini.lua
|
||||
sed -i -e 's/C.uptime/U/g' microtel-3-mini.lua
|
||||
sed -i -e 's/table.unpack/Y/g' microtel-3-mini.lua
|
||||
sed -i -e 's/COMPUTER/computer/g' microtel-3-mini.lua
|
||||
sed -i -e 's/UPTIME/C.uptime/g' microtel-3-mini.lua
|
||||
sed -i -e 's/UNPACK/table.unpack/g' microtel-3-mini.lua
|
||||
lua strip.lua microtel-3-mini.lua microtel-3-mini.lua
|
||||
|
||||
#microtel-4.lua
|
||||
|
Loading…
Reference in New Issue
Block a user