From 44c961b71dae94c371e0075bf10ec48108373003 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=9F=E3=81=8F=E3=81=BE=E3=81=A3=E3=81=A1=20=20=20Taku?= =?UTF-8?q?machi?= <47268002+xtakumatutix@users.noreply.github.com> Date: Sat, 21 Nov 2020 19:53:05 +0900 Subject: [PATCH] Update PacketHandler.php --- src/Xenophilicy/TableSpoon/handlers/PacketHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Xenophilicy/TableSpoon/handlers/PacketHandler.php b/src/Xenophilicy/TableSpoon/handlers/PacketHandler.php index 00904e8..155fa70 100644 --- a/src/Xenophilicy/TableSpoon/handlers/PacketHandler.php +++ b/src/Xenophilicy/TableSpoon/handlers/PacketHandler.php @@ -42,7 +42,7 @@ public function onPacketReceive(DataPacketReceiveEvent $ev){ if($session instanceof PlayerSession){ switch($pk->action){ case PlayerActionPacket::ACTION_DIMENSION_CHANGE_ACK: - case PlayerActionPacket::ACTION_DIMENSION_CHANGE_REQUEST: + case PlayerActionPacket::ACTION_CREATIVE_PLAYER_DESTROY_BLOCK: // Packets in ACTION_DIMENSION_CHANGE_REQUEST have been renamed in 1.16.100. $pk->action = PlayerActionPacket::ACTION_RESPAWN; // redirect to respawn action so that PMMP would handle it as a respawn break; case PlayerActionPacket::ACTION_START_GLIDE: