Update ViaVersion api usage

This commit is contained in:
chris 2024-03-02 20:03:18 +01:00 committed by GitHub
parent 5d95bf65a6
commit 123990a795
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -433,7 +433,7 @@ public class GeyserSpigotPlugin extends JavaPlugin implements GeyserBootstrap {
return false; return false;
} }
for (int i = protocolList.size() - 1; i >= 0; i--) { for (int i = protocolList.size() - 1; i >= 0; i--) {
MappingData mappingData = protocolList.get(i).getProtocol().getMappingData(); MappingData mappingData = protocolList.get(i).protocol().getMappingData();
if (mappingData != null) { if (mappingData != null) {
return true; return true;
} }