cleanup: Fixes bugs and cleans up code (#660)

This commit is contained in:
Kamron Batman 2021-07-19 20:49:59 -07:00 committed by GitHub
parent 1de0b656a9
commit 679e8100f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
99 changed files with 160 additions and 346 deletions

View file

@ -23,7 +23,7 @@ namespace Server
public static void Initialize()
{
var filePath = Path.Combine(Core.BaseDirectory, "Data/treasure.cfg");
int i = 0, x = 0, y = 0;
int i = 0;
if (File.Exists(filePath))
{
@ -38,8 +38,8 @@ namespace Server
{
var split = line.Split(' ');
x = Convert.ToInt32(split[0]);
y = Convert.ToInt32(split[1]);
var x = Convert.ToInt32(split[0]);
var y = Convert.ToInt32(split[1]);
try
{