EntityDamageByEntityEvent weird

Discussion in 'Plugin Development' started by iWareWolf, Jul 20, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    iWareWolf

    It is being called at times when there is no damage. Like if I spam click on a zombie, it will run more than the times it is actually damaged. I think it has something to do with the fact that they cannot be damaged consecutively. How to fix?
     
  2. Offline

    Garris0n

    Are you using the latest version?
     
  3. Offline

    jeussa

    You should check the amount of damage. If the amount is 0, then It means no damage has been done.
     
  4. Offline

    iWareWolf

    It has always been like this since Minecraft doesn't let players spam click damage.
    No the damage is still not 0 even tho the damage is not performed.
     
  5. Offline

    jeussa

    iWareWolf
    In that case I suggest you check if the event .isCancelled();
     
  6. Offline

    xTigerRebornx

  7. Offline

    iWareWolf

    Latest Beta and thanks for the help!
     
Thread Status:
Not open for further replies.

Share This Page