From fc8372783e84c27c70e49117c01418a4f3bea4e2 Mon Sep 17 00:00:00 2001 From: jack lin Date: Sat, 30 Aug 2014 21:52:54 +1200 Subject: [PATCH] [BUGFIX] Fixed Task #23 - Combustion * Error: http://www.projectkorra.com/threads/errorstacks-cause-pastebin-deletes.361/#post-3090 --- .../projectkorra/ProjectKorra/firebending/Combustion.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/com/projectkorra/ProjectKorra/firebending/Combustion.java b/src/com/projectkorra/ProjectKorra/firebending/Combustion.java index 4c47264f..199b8ee3 100644 --- a/src/com/projectkorra/ProjectKorra/firebending/Combustion.java +++ b/src/com/projectkorra/ProjectKorra/firebending/Combustion.java @@ -173,9 +173,11 @@ public class Combustion { public static void removeAroundPoint(Location loc, double radius) { for (Player player: instances.keySet()) { Combustion combustion = instances.get(player); - if (combustion.location.distance(loc) <= radius) { - explode(player); - instances.remove(player); + if (combustion.location.getWorld() == loc.getWorld()) { + if (combustion.location.distance(loc) <= radius) { + explode(player); + instances.remove(player); + } } } }