mirror of
https://github.com/TotalFreedomMC/TF-ProjectKorra.git
synced 2025-02-11 11:40:40 +00:00
[BUGFIX] Fixed Task #23 - Combustion
* Error: http://www.projectkorra.com/threads/errorstacks-cause-pastebin-deletes.361/#post-3090
This commit is contained in:
parent
6b03c92cfb
commit
fc8372783e
1 changed files with 5 additions and 3 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue