mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 13:36:33 +01:00
Fix DistanceTrigger CME; resolvse #834
This commit is contained in:
parent
e4ad18e4ba
commit
970527e903
@ -74,7 +74,7 @@ public class DistanceTrigger extends Trigger {
|
||||
return;
|
||||
}
|
||||
|
||||
for (Trigger trigger : gameWorld.getTriggers()) {
|
||||
for (Trigger trigger : gameWorld.getTriggers().toArray(new Trigger[gameWorld.getTriggers().size()])) {
|
||||
if (trigger instanceof DistanceTrigger) {
|
||||
DistanceTrigger distanceTrigger = (DistanceTrigger) trigger;
|
||||
if (player.getLocation().distance(distanceTrigger.loc) < distanceTrigger.distance) {
|
||||
|
Loading…
Reference in New Issue
Block a user