Skip to content

Commit

Permalink
reverted again... doesn't work with instabreak... again
Browse files Browse the repository at this point in the history
  • Loading branch information
Traneptora committed Jun 29, 2016
1 parent cfe9f26 commit 17773d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/thebombzen/mods/autoswitch/AutoSwitch.java
Expand Up @@ -167,7 +167,7 @@ public void clientTick(ClientTickEvent event) {
}

pulseOn = ThebombzenAPI.isExtendedKeyDown(configuration.getKeyCodeProperty(Configuration.PULSE_KEY));
boolean mouseDown = mc.gameSettings.keyBindAttack.isKeyDown();
boolean mouseDown = ThebombzenAPI.isExtendedKeyDown(mc.gameSettings.keyBindAttack.getKeyCode());
if (!mouseDown && prevMouseDown || mouseDown && pulseOn ^ prevPulse) {
switchBack();
}
Expand Down Expand Up @@ -849,8 +849,8 @@ public static ResourceLocation findUniqueIdentifierFor(Block block){
*/
private void switchToBestTool(World world, BlockPos pos) {

Block block = world.getBlockState(pos).getBlock();
ResourceLocation location = findUniqueIdentifierFor(block);
IBlockState state = world.getBlockState(pos);
ResourceLocation location = findUniqueIdentifierFor(state.getBlock());

String name = location.toString();

Expand Down

0 comments on commit 17773d3

Please sign in to comment.