Added code for minium stone also
This commit is contained in:
parent
96639ee9d0
commit
c6e8ccb39a
1 changed files with 5 additions and 1 deletions
|
@ -97,7 +97,11 @@ public class ItemMiniumStone extends ItemEE implements ITransmutationStone,
|
|||
}
|
||||
else if (keyBinding.equals(ConfigurationSettings.KEYBINDING_TOGGLE)) {
|
||||
if (TransmutationHelper.targetBlockStack != null) {
|
||||
TransmutationHelper.targetBlockStack = TransmutationHelper.getNextBlock(TransmutationHelper.targetBlockStack.itemID, TransmutationHelper.targetBlockStack.getItemDamage());
|
||||
if(!thePlayer.isSneaking()){
|
||||
TransmutationHelper.targetBlockStack = TransmutationHelper.getNextBlock(TransmutationHelper.targetBlockStack.itemID, TransmutationHelper.targetBlockStack.getItemDamage());
|
||||
}else{
|
||||
TransmutationHelper.targetBlockStack = TransmutationHelper.getPreviousBlock(TransmutationHelper.targetBlockStack.itemID, TransmutationHelper.targetBlockStack.getItemDamage());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue