mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2025-01-07 16:58:26 +01:00
Set minimum distance trigger range to 2
This commit is contained in:
parent
970527e903
commit
5017f572b9
@ -34,8 +34,10 @@ public class DistanceTrigger extends Trigger {
|
|||||||
private Location loc;
|
private Location loc;
|
||||||
|
|
||||||
public DistanceTrigger(int distance, Location loc) {
|
public DistanceTrigger(int distance, Location loc) {
|
||||||
if (distance >= 0) {
|
if (distance >= 2) {
|
||||||
this.distance = distance;
|
this.distance = distance;
|
||||||
|
} else {
|
||||||
|
this.distance = 2;
|
||||||
}
|
}
|
||||||
this.loc = loc;
|
this.loc = loc;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user