forked from 2009Scape/Server
rename data -> destinations (duplicate var)
This commit is contained in:
parent
802c825c21
commit
fb4ebf8e27
1 changed files with 4 additions and 4 deletions
|
|
@ -322,10 +322,10 @@ public final class BetaCommandPlugin extends CommandPlugin {
|
|||
}
|
||||
Location destination = null;
|
||||
String place = getArgumentLine(args);
|
||||
for (Object[] data : ServerConstants.TELEPORT_DESTINATIONS) {
|
||||
for (int i = 1; i < data.length; i++) {
|
||||
if (place.equals(data[i])) {
|
||||
destination = (Location) data[0];
|
||||
for (Object[] destinations : ServerConstants.TELEPORT_DESTINATIONS) {
|
||||
for (int i = 1; i < destinations.length; i++) {
|
||||
if (place.equals(destinations[i])) {
|
||||
destination = (Location) destinations[0];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue