Uploaded image for project: 'Spigot'
  1. Spigot
  2. SPIGOT-4795

EntityPoseChangeEvent called every tick with no pose change

XMLWordPrintable

    • This server is running CraftBukkit version git-Spigot-e4be9b0-5736cdc (MC: 1.14) (Implementing API version 1.14-R0.1-SNAPSHOT)
    • Yes

      EntityPoseChangeEvent appears to fire every tick for a player, reporting that their pose has changed to standing 20 times per second.

      The event is meant to be called only when an entity has changed pose, for example they were standing and are now sneaking.

      Should only be called when the newPose != previousPose.

      Example plugin provided, will listen on EntityPoseChangeEvent and report the entitys new pose in chat/log.

       

      @EventHandler(priority = EventPriority.MONITOR)
      public void PlayerInteract(EntityPoseChangeEvent event){
          Bukkit.broadcastMessage(event.getEntity().getName()+" has changed pose: "+event.getPose());
      }
      

            Unassigned Unassigned
            zedwick@gmail.com Zedadias Wick
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: