diff --git a/server/src/main/java/com/soulfiremc/server/protocol/bot/SessionDataManager.java b/server/src/main/java/com/soulfiremc/server/protocol/bot/SessionDataManager.java index e98843fb..7208c2db 100644 --- a/server/src/main/java/com/soulfiremc/server/protocol/bot/SessionDataManager.java +++ b/server/src/main/java/com/soulfiremc/server/protocol/bot/SessionDataManager.java @@ -1043,6 +1043,13 @@ public void onEntityPositionSync(ClientboundEntityPositionSyncPacket packet) { } } + @EventHandler + public void onExplosion(ClientboundExplodePacket packet) { + if (packet.getPlayerKnockback() != null) { + localPlayer.addDeltaMovement(packet.getPlayerKnockback()); + } + } + @EventHandler public void onResourcePack(ClientboundResourcePackPushPacket packet) { if (!isValidResourcePackUrl(packet.getUrl())) {