Skip to content

Commit

Permalink
Bugfix with ChatPrompt
Browse files Browse the repository at this point in the history
  • Loading branch information
boxbeam committed May 16, 2020
1 parent 6d99516 commit e4378a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/redempt/redlib/misc/ChatPrompt.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public static void prompt(Player player, String prompt, Consumer<String> onRespo
}
prompts.put(player, new Prompt(onResponse, onCancel));
player.sendMessage(prompt);
player.sendMessage(Messages.msg("cancelPromptMessage").replace("%cancel%", Messages.msg("cancelText")));
player.sendMessage(Messages.msg("cancelPromptMessage").replace("%canceltext%", Messages.msg("cancelText")));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/redempt/redlib/multiblock/Structure.java
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ public StructureBlock getRelative(int x, int y, int z) {
int[] dim = type.getDimensions();
if (x < 0 || y < 0 || z < 0
|| x > dim[0] || y > dim[1] || z > dim[2]) {
throw new IndexOutOfBoundsException("Location outside bounds of structure");
throw new IndexOutOfBoundsException("Relative location outside bounds of structure: " + x + ", " + y + ", " + z);
}
rotator.setLocation(x, z);
return new StructureBlock(loc.getWorld().getBlockAt(rotator.getRotatedX() + loc.getBlockX(), y + loc.getBlockY(), rotator.getRotatedZ() + loc.getBlockZ()),
Expand Down

0 comments on commit e4378a4

Please sign in to comment.