fix: entity_sitting property when npc respawns

This commit is contained in:
D3v1s0m 2025-05-08 22:25:18 +05:30
parent a87f1657cc
commit fe70e7ca9c
No known key found for this signature in database
GPG key ID: FA1F770C7B1D40C1

View file

@ -71,6 +71,9 @@ public class PacketEntity implements PropertyHolder {
return FutureUtil.exceptionPrintingRunAsync(() -> { return FutureUtil.exceptionPrintingRunAsync(() -> {
if (type == EntityTypes.PLAYER) packetFactory.spawnPlayer(player, this, properties).join(); if (type == EntityTypes.PLAYER) packetFactory.spawnPlayer(player, this, properties).join();
else packetFactory.spawnEntity(player, this, properties); else packetFactory.spawnEntity(player, this, properties);
if (vehicle != null) {
setVehicle(vehicle);
}
if (vehicleId != null) { if (vehicleId != null) {
packetFactory.setPassengers(player, vehicleId, this.getEntityId()); packetFactory.setPassengers(player, vehicleId, this.getEntityId());
} }