|
20 | 20 | #include "mc/network/ServerNetworkHandler.h" |
21 | 21 | #include "mc/network/packet/AddVolumeEntityPacket.h" |
22 | 22 | #include "mc/network/packet/ChangeDimensionPacket.h" |
| 23 | +#include "mc/network/packet/DebugDrawerPacket.h" |
23 | 24 | #include "mc/network/packet/InteractPacket.h" |
24 | 25 | #include "mc/network/packet/InventoryTransactionPacket.h" |
25 | 26 | #include "mc/network/packet/LevelChunkPacket.h" |
26 | 27 | #include "mc/network/packet/PlayerActionPacket.h" |
27 | 28 | #include "mc/network/packet/PlayerActionType.h" |
28 | 29 | #include "mc/network/packet/PlayerAuthInputPacket.h" |
29 | 30 | #include "mc/network/packet/RemoveVolumeEntityPacket.h" |
| 31 | +#include "mc/network/packet/ShapeDataPayload.h" |
30 | 32 | #include "mc/network/packet/SpawnParticleEffectPacket.h" |
31 | 33 | #include "mc/network/packet/StartGamePacket.h" |
32 | 34 | #include "mc/network/packet/SubChunkPacket.h" |
@@ -463,6 +465,13 @@ void FakeDimensionId::changePacketDimension(Packet& packet) { |
463 | 465 | tempP.mDimensionType = fakeDim; |
464 | 466 | logger.debug("MinecraftPacketIds::AddVolumeEntityPacket: dimId change to {}", fakeDim.id); |
465 | 467 | } |
| 468 | + case MinecraftPacketIds::DebugDrawerPacket: { |
| 469 | + auto& tempP = (DebugDrawerPacket&)packet; |
| 470 | + for (auto& shape : *tempP.mPayload->mShapes) { |
| 471 | + shape.mDimensionId = fakeDim; |
| 472 | + } |
| 473 | + logger.debug("MinecraftPacketIds::DebugDrawerPacket: dimId change to {}", fakeDim.id); |
| 474 | + } |
466 | 475 | default: |
467 | 476 | return; |
468 | 477 | } |
|
0 commit comments