9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2025-12-30 20:39:15 +00:00
* fix: fix #685

* chor: remove comments

* wtf the idea

* refactor: use special judgment

maybe temporarily

---------

Co-authored-by: MC_XiaoHei <xor7xiaohei@gmail.com>
This commit is contained in:
Helvetica Volubi
2025-08-14 20:27:12 +08:00
committed by GitHub
parent 5366b38230
commit e55edbf8f8

View File

@@ -515,6 +515,19 @@ public class ServerBot extends ServerPlayer {
this.getServer().getBotList().removeBot(this, BotRemoveEvent.RemoveReason.DEATH, null, false);
}
@Override
public boolean startRiding(Entity vehicle, boolean force) {
if (super.startRiding(vehicle, force)) {
if (vehicle instanceof AbstractBoat) {
this.setDeltaMovement(Vec3.ZERO);
this.setYRot(vehicle.yRotO);
}
return true;
} else {
return false;
}
}
public void removeTab() {
this.sendPacket(new ClientboundPlayerInfoRemovePacket(List.of(this.getUUID())));
}