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',
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,

View File

@@ -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',

View File

@@ -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)

View File

@@ -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