azure-server
azure-server
### Expected behavior Player riptides and swaps to another item, animation still appears and PlayerRiptideEvent is called. ### Observed/Actual behavior Player riptides and swaps to another item, no animation appears,...
### Expected behavior ### **Code** Using EntityDamageByEntityEvent: ``` if (attackingPlayer.getAttackCooldown() == 1.0) { damagedPlayer.setFoodLevel(Math.max(damagedPlayer.getFoodLevel() - foodLevelReduction, 0)); Sound.KIGA_HIT.play(damagedPlayer.getLocation()); } ``` Player draws attack cooldown attributed item from a non-attack cooldown...
I think just removing from `defaultDisplay` would still create crashes, given displays can vary when using `createDisplay`. A workaround I found for this was iterating through online players and recursively...