launchProjectileDoesn't work

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None

      Calling player.launchProjectile(Arrow.class) doesn't spawn the arrow anymore.
      I've checked if the entity was valid and if ProjectileLaunchEvent was cancelled.

      Arrow arrow = player.launchProjectile(Arrow.class);
      System.out.println(arrow.isValid()); //Outputs true
      
      @EventHandler(priority = EventPriority.MONITOR)
      public void test(final ProjectileLaunchEvent e) {
      	System.out.println(e.isCancelled());//Outputs false
      }
      

      It worked yesterday (11 March)

            Assignee:
            Unassigned
            Reporter:
            ImAFlyingPancake
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: