Added ninja check for bow charge if you just right click quickly.
This commit is contained in:
parent
e4ca9084cc
commit
8460fcc8f6
@ -12,6 +12,7 @@ import mineplex.core.updater.event.UpdateEvent;
|
||||
import mineplex.minecraft.game.classcombat.Class.IPvpClass.ClassType;
|
||||
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.craftbukkit.v1_7_R1.entity.CraftEntity;
|
||||
import org.bukkit.entity.Arrow;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.EventHandler;
|
||||
@ -93,6 +94,10 @@ public abstract class SkillChargeBow extends SkillCharge implements Listener
|
||||
continue;
|
||||
}
|
||||
|
||||
// Client sends a packet when you stop charging a bow and sets this datawatcher value.
|
||||
if ((((CraftEntity)cur).getHandle().getDataWatcher().getByte(0) & 1 << 4) == 0)
|
||||
continue;
|
||||
|
||||
//Flags
|
||||
if (!_canChargeInAir && !UtilEnt.isGrounded(cur))
|
||||
continue;
|
||||
|
Loading…
Reference in New Issue
Block a user