diff --git a/src/redempt/redlib/misc/ChatPrompt.java b/src/redempt/redlib/misc/ChatPrompt.java index 37ecf45..0d5b278 100644 --- a/src/redempt/redlib/misc/ChatPrompt.java +++ b/src/redempt/redlib/misc/ChatPrompt.java @@ -36,7 +36,7 @@ public static void prompt(Player player, String prompt, Consumer 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"))); } /** diff --git a/src/redempt/redlib/multiblock/Structure.java b/src/redempt/redlib/multiblock/Structure.java index 107ec2f..9631ee1 100644 --- a/src/redempt/redlib/multiblock/Structure.java +++ b/src/redempt/redlib/multiblock/Structure.java @@ -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()),