Merge branch 'stable' into minor-next

This commit is contained in:
Dylan K. Taylor
2024-11-25 14:32:30 +00:00
67 changed files with 339 additions and 130 deletions

View File

@ -251,7 +251,7 @@ class InGamePacketHandler extends PacketHandler{
if(count($blockActions) > 100){
throw new PacketHandlingException("Too many block actions in PlayerAuthInputPacket");
}
foreach($blockActions as $k => $blockAction){
foreach(Utils::promoteKeys($blockActions) as $k => $blockAction){
$actionHandled = false;
if($blockAction instanceof PlayerBlockActionStopBreak){
$actionHandled = $this->handlePlayerActionFromData($blockAction->getActionType(), new BlockPosition(0, 0, 0), Facing::DOWN);