Skip to content

Commit

Permalink
discard entity when done
Browse files Browse the repository at this point in the history
  • Loading branch information
bazke committed Oct 9, 2024
1 parent c2c587a commit 1f1144a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,12 @@ public SeatEntity(final EntityType<?> entityType, final Level level) {
super(entityType, level);
}

@Override
protected void removePassenger(final Entity passenger) {
super.removePassenger(passenger);
remove(RemovalReason.DISCARDED);
}

@Override
protected void defineSynchedData(final SynchedEntityData.Builder builder) {

Expand Down

0 comments on commit 1f1144a

Please sign in to comment.