fix: entity_sitting property when npc respawns
This commit is contained in:
parent
a87f1657cc
commit
fe70e7ca9c
1 changed files with 3 additions and 0 deletions
|
@ -71,6 +71,9 @@ public class PacketEntity implements PropertyHolder {
|
|||
return FutureUtil.exceptionPrintingRunAsync(() -> {
|
||||
if (type == EntityTypes.PLAYER) packetFactory.spawnPlayer(player, this, properties).join();
|
||||
else packetFactory.spawnEntity(player, this, properties);
|
||||
if (vehicle != null) {
|
||||
setVehicle(vehicle);
|
||||
}
|
||||
if (vehicleId != null) {
|
||||
packetFactory.setPassengers(player, vehicleId, this.getEntityId());
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue