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.setGravity(false);
arrow.setPickupStatus(AbstractArrow.PickupStatus.DISALLOWED); arrow.setPickupStatus(AbstractArrow.PickupStatus.DISALLOWED);
arrow.addPassenger(event.getPlayer()); arrow.addPassenger(event.getPlayer());
arrow.setPersistent(true);
} }
@EventHandler @EventHandler
public void onEntityDismount(EntityDismountEvent event) { public void onEntityDismount(EntityDismountEvent event) {
if(event.getEntity().getType() != EntityType.ARROW) if(event.getDismounted().getType() != EntityType.ARROW)
return; return;
if(event.getEntityType() != EntityType.PLAYER) if(event.getEntityType() != EntityType.PLAYER)