rename data -> destinations (duplicate var)

This commit is contained in:
RedSparr0w 2019-09-20 11:41:24 +12:00
parent 802c825c21
commit fb4ebf8e27

View file

@ -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;
}
}