Make tumble work when left-clicking mobs.
This commit is contained in:
parent
1d78308d28
commit
01699e6710
Binary file not shown.
@ -1,6 +1,6 @@
|
|||||||
name: TwosideKeeper
|
name: TwosideKeeper
|
||||||
main: sig.plugin.TwosideKeeper.TwosideKeeper
|
main: sig.plugin.TwosideKeeper.TwosideKeeper
|
||||||
version: 3.6.2r1
|
version: 3.6.2r2
|
||||||
commands:
|
commands:
|
||||||
money:
|
money:
|
||||||
description: Tells the player the amount of money they are holding.
|
description: Tells the player the amount of money they are holding.
|
||||||
|
@ -1809,7 +1809,8 @@ public class TwosideKeeper extends JavaPlugin implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Check for a roll attempt here.
|
//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();
|
Player p = ev.getPlayer();
|
||||||
if (p.isSneaking() && p.isOnGround() && GenericFunctions.isRanger(p) &&
|
if (p.isSneaking() && p.isOnGround() && GenericFunctions.isRanger(p) &&
|
||||||
GenericFunctions.getBowMode(p.getEquipment().getItemInMainHand())==BowMode.CLOSE) {
|
GenericFunctions.getBowMode(p.getEquipment().getItemInMainHand())==BowMode.CLOSE) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user