diff options
author | bowser0000 <bowser0000@gmail.com> | 2020-09-04 19:44:36 -0400 |
---|---|---|
committer | bowser0000 <bowser0000@gmail.com> | 2020-09-04 19:44:36 -0400 |
commit | 96a03b43211dcc3e045449a8d5cb13191c15113e (patch) | |
tree | 0d9a98bfd7c488aa230b87532454de335d26472f /src/main/java/me/Danker/commands | |
parent | c33d70d29a8976079be54507ea8c53cec1a01a49 (diff) | |
download | SkyblockMod-96a03b43211dcc3e045449a8d5cb13191c15113e.tar.gz SkyblockMod-96a03b43211dcc3e045449a8d5cb13191c15113e.tar.bz2 SkyblockMod-96a03b43211dcc3e045449a8d5cb13191c15113e.zip |
Make scale 10x more precise, fix /loot tab complete
Diffstat (limited to 'src/main/java/me/Danker/commands')
-rw-r--r-- | src/main/java/me/Danker/commands/LootCommand.java | 2 | ||||
-rw-r--r-- | src/main/java/me/Danker/commands/ScaleCommand.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/me/Danker/commands/LootCommand.java b/src/main/java/me/Danker/commands/LootCommand.java index 3e9d0ba..a877a8d 100644 --- a/src/main/java/me/Danker/commands/LootCommand.java +++ b/src/main/java/me/Danker/commands/LootCommand.java @@ -233,7 +233,7 @@ public class LootCommand extends CommandBase { @Override public List<String> addTabCompletionOptions(ICommandSender sender, String[] args, BlockPos pos) { if (args.length == 1) { - return getListOfStringsMatchingLastWord(args, "wolf", "spider", "zombie", "fishing"); + return getListOfStringsMatchingLastWord(args, "wolf", "spider", "zombie", "fishing", "catacombs"); } else if (args.length == 2 && args[0].equalsIgnoreCase("fishing")) { return getListOfStringsMatchingLastWord(args, "winter", "session"); } else if (args.length == 2 && args[0].equalsIgnoreCase("catacombs")) { diff --git a/src/main/java/me/Danker/commands/ScaleCommand.java b/src/main/java/me/Danker/commands/ScaleCommand.java index 03c0793..7b56b6d 100644 --- a/src/main/java/me/Danker/commands/ScaleCommand.java +++ b/src/main/java/me/Danker/commands/ScaleCommand.java @@ -49,7 +49,7 @@ public class ScaleCommand extends CommandBase { return; } - double scaleAmount = (double) Math.floor(Double.parseDouble(arg1[1]) * 10.0) / 10.0; + double scaleAmount = (double) Math.floor(Double.parseDouble(arg1[1]) * 100.0) / 100.0; if (scaleAmount < 0.1 || scaleAmount > 10.0) { player.addChatMessage(new ChatComponentText(EnumChatFormatting.RED + "Scale multipler can only be between 0.1x and 10x.")); return; |