[BUGFIX] Fixed Task #23 - Combustion

* Error:
http://www.projectkorra.com/threads/errorstacks-cause-pastebin-deletes.361/#post-3090
This commit is contained in:
jack lin 2014-08-30 21:52:54 +12:00
parent 6b03c92cfb
commit fc8372783e

View file

@ -173,12 +173,14 @@ public class Combustion {
public static void removeAroundPoint(Location loc, double radius) {
for (Player player: instances.keySet()) {
Combustion combustion = instances.get(player);
if (combustion.location.getWorld() == loc.getWorld()) {
if (combustion.location.distance(loc) <= radius) {
explode(player);
instances.remove(player);
}
}
}
}
public static void progressAll() {
for (Player player: instances.keySet()) {