more code cleanup

This commit is contained in:
jomo
2014-07-16 00:49:55 +02:00
parent 195cf2c7ec
commit 1a6e60fec4
14 changed files with 35 additions and 36 deletions

View File

@@ -1,4 +1,4 @@
#pylint: disable=F0401
#pylint: disable = F0401
import org.bukkit as bukkit
from helpers import *
@@ -21,7 +21,7 @@ def scan_chunks(amount):
ents = chunk.getEntities()
# [0]world [1]X [2]Y [3]Z [4]amount
chunks.append([chunk.getWorld(), int(ents[-1].getLocation().getX()), int(ents[0].getLocation().getY()), int(ents[0].getLocation().getZ()), len(ents)])
chunks.sort(key=lambda entry: entry[4], reverse=True)
chunks.sort(key = lambda entry: entry[4], reverse = True)
lagchunks = chunks
except Exception, e:
error(e)