tool set, fixes #227

This commit is contained in:
ave4224
2018-10-23 00:41:59 -04:00
parent b55d96169f
commit 9a1aecc002
2 changed files with 115 additions and 59 deletions

View File

@@ -400,7 +400,7 @@ public interface MovementHelper extends ActionCosts, Helper {
* @param ts previously calculated ToolSet
*/
static void switchToBestToolFor(IBlockState b, ToolSet ts) {
mc.player.inventory.currentItem = ts.getBestSlot(b);
mc.player.inventory.currentItem = ts.getBestSlot(b.getBlock());
}
static boolean throwaway(boolean select) {