From fe70e7ca9cc188b8345bf35dadc8e851c929c00d Mon Sep 17 00:00:00 2001 From: D3v1s0m Date: Thu, 8 May 2025 22:25:18 +0530 Subject: [PATCH] fix: entity_sitting property when npc respawns --- .../src/main/java/lol/pyr/znpcsplus/entity/PacketEntity.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugin/src/main/java/lol/pyr/znpcsplus/entity/PacketEntity.java b/plugin/src/main/java/lol/pyr/znpcsplus/entity/PacketEntity.java index 4e51020..e1cf15c 100644 --- a/plugin/src/main/java/lol/pyr/znpcsplus/entity/PacketEntity.java +++ b/plugin/src/main/java/lol/pyr/znpcsplus/entity/PacketEntity.java @@ -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()); }