Make tumble work when left-clicking mobs.

This commit is contained in:
sigonasr2 2016-07-19 23:27:24 -05:00
parent 1d78308d28
commit 01699e6710
3 changed files with 3 additions and 2 deletions

Binary file not shown.

View File

@ -1,6 +1,6 @@
name: TwosideKeeper
main: sig.plugin.TwosideKeeper.TwosideKeeper
version: 3.6.2r1
version: 3.6.2r2
commands:
money:
description: Tells the player the amount of money they are holding.

View File

@ -1809,7 +1809,8 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
}
//Check for a roll attempt here.
if ((ev.getAction()==Action.LEFT_CLICK_AIR || ev.getAction()==Action.LEFT_CLICK_BLOCK)) {
if ((ev.getAction()==Action.LEFT_CLICK_AIR || ev.getAction()==Action.LEFT_CLICK_BLOCK ||
ev.getAction()==Action.PHYSICAL)) {
Player p = ev.getPlayer();
if (p.isSneaking() && p.isOnGround() && GenericFunctions.isRanger(p) &&
GenericFunctions.getBowMode(p.getEquipment().getItemInMainHand())==BowMode.CLOSE) {