Skip to content

Commit 05fcde6

Browse files
committed
Update GitHub Action macOS test job to Xcode 14.2
I also fixed a lint warning from a force try that I added while investigating a bug
1 parent 7a768f6 commit 05fcde6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Diff for: .github/workflows/test.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ on:
77

88
jobs:
99
test-macos:
10-
runs-on: macOS-11
10+
runs-on: macOS-12
1111
steps:
1212
- name: Checkout
1313
uses: actions/checkout@v2
14-
- name: Force Xcode 13.2
15-
run: sudo xcode-select -switch /Applications/Xcode_13.2.app
14+
- name: Force Xcode 14.2
15+
run: sudo xcode-select -switch /Applications/Xcode_14.2.app
1616
- name: Version
1717
run: swift --version
1818
- name: Test

Diff for: Sources/Core/Sources/Network/Protocol/Packets/Play/Clientbound/ChunkDataPacket.swift

+1-2
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,8 @@ public struct ChunkDataPacket: ClientboundPacket {
4949
blockEntities = []
5050
blockEntities.reserveCapacity(numBlockEntities)
5151
for _ in 0..<numBlockEntities {
52-
let blockEntityNBT = try! packetReader.readNBTCompound()
5352
do {
54-
53+
let blockEntityNBT = try packetReader.readNBTCompound()
5554
let x: Int32 = try blockEntityNBT.get("x")
5655
let y: Int32 = try blockEntityNBT.get("y")
5756
let z: Int32 = try blockEntityNBT.get("z")

0 commit comments

Comments
 (0)