From ddbef36e5f2dc7964c45fb4bbc006cd7a8845bf3 Mon Sep 17 00:00:00 2001 From: Cooldude2606 Date: Mon, 10 Sep 2018 17:50:24 +0100 Subject: [PATCH] Fixed Some Bugs --- Addons/playerRanks.lua | 4 ++-- ExpCore/ranks.lua | 2 +- StandAlone/paths.lua | 4 ++-- control.lua | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Addons/playerRanks.lua b/Addons/playerRanks.lua index 9d56bdf5..ad5b55b2 100644 --- a/Addons/playerRanks.lua +++ b/Addons/playerRanks.lua @@ -149,7 +149,7 @@ groups['Root']:add_rank{ name='Developer', short_hand='Dev', tag='[Dev]', - colour={r=179,g=125,b=46}, + colour={r=57,g=192,b=207}, is_admin = true, is_spectator=true, base_afk_time=false @@ -260,7 +260,7 @@ ranks['Sponsor']:edit('allow',false,{ ['bonus']=true, ['bonus-respawn']=true }) -ranks['Subscription']:edit('allow',false,{ +ranks['Pay to Win']:edit('allow',false,{ ['jail']=true, ['unjail']=true, ['bonus']=true, diff --git a/ExpCore/ranks.lua b/ExpCore/ranks.lua index d0707924..b23fb749 100644 --- a/ExpCore/ranks.lua +++ b/ExpCore/ranks.lua @@ -149,7 +149,7 @@ user:add_rank{ name='Guest', short_hand='', tag='', - colour={r=132,g=88,b=155}, + colour={r=143,g=46,b=46}, is_default=true, disallow={ 'build_terrain', diff --git a/StandAlone/paths.lua b/StandAlone/paths.lua index b6524c11..ab4f6024 100644 --- a/StandAlone/paths.lua +++ b/StandAlone/paths.lua @@ -120,8 +120,8 @@ Event.register(defines.events.on_built_entity, function(event) local surface = player.surface if entities[entity.name] then local size = entities[entity.name] - for (x in 0,size) do for (y in 0,size) do - local pos = [entity.position.x+x,entity.position.y+y] + for x in 0,size do for y in 0,size do + local pos = {entity.position.x+x,entity.position.y+y} local tile = surface.get_tile(pos).name if math.random() < paths[tile]*size*10 then down_grade(surface,pos) diff --git a/control.lua b/control.lua index 90226fbb..32e32c95 100644 --- a/control.lua +++ b/control.lua @@ -30,7 +30,7 @@ end _verbose = false -- Set to true for more on the loading of the files function verbose(str) if _verbose then log(str) print(str) end end verbose('============================= START =============================') -require_return_err = false -- Set to false when removing files; set to true for debuging +require_return_err = true -- Set to false when removing files; set to true for debuging _require = require require = function(path) local _path = path