Entity.getVehicle() returns the root vehicle not the direct vehicle

XMLWordPrintable

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

      If you make a sattled pig ride a minecart and then ride the pig with a player, calling player.getVehicle() will return the root vehicle (the minecart) instead of the pig.

      This is caused by using the wrong method in nms.Entity to request the vehicle.

      I'll create a PR for this issue.

            Assignee:
            Unassigned
            Reporter:
            Black Hole
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: