9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-28 11:29:17 +00:00

Update PacketConsumers.java

This commit is contained in:
XiaoMoMi
2025-04-21 04:37:36 +08:00
parent 1954aebac3
commit bd96f73b5a

View File

@@ -1653,6 +1653,7 @@ public class PacketConsumers {
}
}
// now simulate vanilla item behavior
serverPlayer.setResendSound();
FastNMS.INSTANCE.simulateInteraction(serverPlayer.serverPlayer(), DirectionUtils.toNMSDirection(hitResult.direction()), hitResult.hitLocation().x, hitResult.hitLocation().y, hitResult.hitLocation().z, LocationUtils.toBlockPos(hitResult.blockPos()));
} else {
furniture.findFirstAvailableSeat(entityId).ifPresent(seatPos -> {