Permalink
Browse files

Handle out of bound lines.

  • Loading branch information...
me4502 committed Apr 26, 2017
1 parent 5a460b4 commit b21fb607ebd233213d4437bea498411eb780b60c
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/java/com/sk89q/craftbook/mechanics/signcopier/SignEditCommands.java
@@ -30,7 +30,7 @@ public void editSign(CommandContext context, CommandSender sender) throws Comman
if(!SignCopier.signs.containsKey(sender.getName()))
throw new FastCommandException("You haven't copied a sign!");
- int line = context.getInteger(0, 0);
+ int line = context.getInteger(0, 1);
String text = context.getString(1, "");
if (line < 1 || line > 4) {

0 comments on commit b21fb60

Please sign in to comment.