Skip to content

Commit 2478c73

Browse files
committed
Add Minecraft 1.18.2 support.
1 parent 316234b commit 2478c73

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/minecraft/utils.ts

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export const protocolMap = {
99
'1.17.1': 756,
1010
1.18: 757,
1111
'1.18.1': 757,
12+
'1.18.2': 758,
1213
auto: -1
1314
}
1415

src/screens/ServerScreen.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const ServerScreen = () => {
150150
if (protocolVersion === -1) {
151151
const ping = pingResponses[servers[server].address]
152152
// Try the latest.
153-
if (!ping) protocolVersion = protocolMap['1.18.1']
153+
if (!ping) protocolVersion = protocolMap['1.18.2']
154154
else if (typeof ping.version === 'object') {
155155
protocolVersion = ping.version.protocol
156156
} else protocolVersion = (ping as LegacyPing).protocol
@@ -257,6 +257,7 @@ const ServerScreen = () => {
257257
dropdownIconColor={darkMode ? '#ffffff' : '#000000'}
258258
>
259259
<Picker.Item label='Auto' value='auto' />
260+
<Picker.Item label='1.18.2' value='1.18.2' />
260261
<Picker.Item label='1.18/1.18.1' value='1.18' />
261262
<Picker.Item label='1.17.1' value='1.17.1' />
262263
<Picker.Item label='1.17' value='1.17' />

0 commit comments

Comments
 (0)