Skip to content

Commit

Permalink
try to allow re-mounting if entity is the same as before
Browse files Browse the repository at this point in the history
  • Loading branch information
demonlexe committed Aug 23, 2024
1 parent 6539bf5 commit 59223d4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,8 @@ public boolean getIsGhost() {

@Override
public boolean startRidingPlayer(EntityPlayer player) {
if (MoCTools.getEntityRidingPlayer(player) != null) {
Entity entityOnPlayer = MoCTools.getEntityRidingPlayer(player);
if (entityOnPlayer != null && entityOnPlayer != this) {
return false; // Something is already riding this player.
}
boolean ret = super.startRiding(player);
Expand Down

0 comments on commit 59223d4

Please sign in to comment.