Make tumble work when left-clicking mobs.

dev
sigonasr2 9 years ago
parent 1d78308d28
commit 01699e6710
  1. BIN
      TwosideKeeper.jar
  2. 2
      src/plugin.yml
  3. 3
      src/sig/plugin/TwosideKeeper/TwosideKeeper.java

Binary file not shown.

@ -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.

@ -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) {

Loading…
Cancel
Save