mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 20:55:44 +01:00
Fix /npc hologram remove off by one
This commit is contained in:
parent
11a231cd13
commit
e8cdba65df
@ -760,7 +760,7 @@ public class NPCCommands {
|
||||
throw new CommandException(Messages.HOLOGRAM_INVALID_LINE);
|
||||
}
|
||||
int idx = Math.max(0, args.getInteger(2));
|
||||
if (idx > trait.getLines().size()) {
|
||||
if (idx >= trait.getLines().size()) {
|
||||
throw new CommandException(Messages.HOLOGRAM_INVALID_LINE);
|
||||
}
|
||||
if (args.argsLength() == 3) {
|
||||
|
Loading…
Reference in New Issue
Block a user