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:
@@ -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())));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user