13
0

Merge remote-tracking branch 'origin/seat'

Dieser Commit ist enthalten in:
Lixfel 2020-11-09 06:20:50 +01:00
Commit 61af402960

Datei anzeigen

@ -53,11 +53,12 @@ public class PlayerSeatListener extends BasicListener {
arrow.setGravity(false);
arrow.setPickupStatus(AbstractArrow.PickupStatus.DISALLOWED);
arrow.addPassenger(event.getPlayer());
arrow.setPersistent(true);
}
@EventHandler
public void onEntityDismount(EntityDismountEvent event) {
if(event.getEntity().getType() != EntityType.ARROW)
if(event.getDismounted().getType() != EntityType.ARROW)
return;
if(event.getEntityType() != EntityType.PLAYER)