Skip to content
This repository has been archived by the owner on Mar 12, 2021. It is now read-only.

Commit

Permalink
Merge pull request #32 from xtakumatutix/1.16.100
Browse files Browse the repository at this point in the history
Update PacketHandler.php
  • Loading branch information
thicksunny authored Nov 21, 2020
2 parents 6283154 + 44c961b commit 16b52cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Xenophilicy/TableSpoon/handlers/PacketHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 16b52cc

Please sign in to comment.