Skip to content

Commit

Permalink
Fixed Vanilla-Ridable-Riding
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakllp committed Dec 14, 2024
1 parent b56666f commit eb12c1c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public EntityMySeat(Level level, double x, double y, double z) {
public static void mountToPet(Entity passenger, Entity myPet) {
var seat = new EntityMySeat(myPet.level(), myPet.getX(), myPet.getY(), myPet.getZ());
if (myPet.level().addFreshEntity(seat, CreatureSpawnEvent.SpawnReason.CUSTOM)) {
if (seat.startRiding(myPet)) {
if (passenger.startRiding(seat)) {
if (seat.startRiding(myPet, true)) {
if (passenger.startRiding(seat, true)) {
return;
}
seat.stopRiding();
Expand Down

0 comments on commit eb12c1c

Please sign in to comment.