mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +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