Fixed Some Bugs

This commit is contained in:
Cooldude2606
2018-09-10 17:50:24 +01:00
parent ce8cf366d0
commit ddbef36e5f
4 changed files with 6 additions and 6 deletions

View File

@@ -149,7 +149,7 @@ groups['Root']:add_rank{
name='Developer', name='Developer',
short_hand='Dev', short_hand='Dev',
tag='[Dev]', tag='[Dev]',
colour={r=179,g=125,b=46}, colour={r=57,g=192,b=207},
is_admin = true, is_admin = true,
is_spectator=true, is_spectator=true,
base_afk_time=false base_afk_time=false
@@ -260,7 +260,7 @@ ranks['Sponsor']:edit('allow',false,{
['bonus']=true, ['bonus']=true,
['bonus-respawn']=true ['bonus-respawn']=true
}) })
ranks['Subscription']:edit('allow',false,{ ranks['Pay to Win']:edit('allow',false,{
['jail']=true, ['jail']=true,
['unjail']=true, ['unjail']=true,
['bonus']=true, ['bonus']=true,

View File

@@ -149,7 +149,7 @@ user:add_rank{
name='Guest', name='Guest',
short_hand='', short_hand='',
tag='', tag='',
colour={r=132,g=88,b=155}, colour={r=143,g=46,b=46},
is_default=true, is_default=true,
disallow={ disallow={
'build_terrain', 'build_terrain',

View File

@@ -120,8 +120,8 @@ Event.register(defines.events.on_built_entity, function(event)
local surface = player.surface local surface = player.surface
if entities[entity.name] then if entities[entity.name] then
local size = entities[entity.name] local size = entities[entity.name]
for (x in 0,size) do for (y in 0,size) do for x in 0,size do for y in 0,size do
local pos = [entity.position.x+x,entity.position.y+y] local pos = {entity.position.x+x,entity.position.y+y}
local tile = surface.get_tile(pos).name local tile = surface.get_tile(pos).name
if math.random() < paths[tile]*size*10 then if math.random() < paths[tile]*size*10 then
down_grade(surface,pos) down_grade(surface,pos)

View File

@@ -30,7 +30,7 @@ end
_verbose = false -- Set to true for more on the loading of the files _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 function verbose(str) if _verbose then log(str) print(str) end end
verbose('============================= START =============================') 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 = require
require = function(path) require = function(path)
local _path = path local _path = path