Small fix.

This commit is contained in:
filoghost 2014-11-25 14:35:28 +01:00
parent 064087b659
commit f0d6c306c3

View File

@ -24,7 +24,7 @@ public class AlignCommand extends HologramSubCommand {
@Override @Override
public String getPossibleArguments() { public String getPossibleArguments() {
return "<X|Y|Z|XZ> <hologramToAlign> <referenceHologram>"; return "<X|Y|Z|XZ> <hologram> <referenceHologram>";
} }
@Override @Override
@ -44,7 +44,7 @@ public class AlignCommand extends HologramSubCommand {
Location loc = hologram.getLocation(); Location loc = hologram.getLocation();
if (args[0].contains("x")) { if (args[0].equalsIgnoreCase("x")) {
loc.setX(referenceHologram.getX()); loc.setX(referenceHologram.getX());
} else if (args[0].equalsIgnoreCase("y")) { } else if (args[0].equalsIgnoreCase("y")) {
loc.setY(referenceHologram.getY()); loc.setY(referenceHologram.getY());