Skip to content

Commit

Permalink
Update ViaVersion api usage to be compatible with ViaVersion 4.10 (#4606
Browse files Browse the repository at this point in the history
)
  • Loading branch information
onebeastchris authored Apr 26, 2024
1 parent 2471de1 commit a57e7b5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public GeyserSpigotLegacyNativeWorldManager(GeyserSpigotPlugin plugin) {
int newBlockId = oldBlockId;
// protocolList should *not* be null; we checked for that before initializing this class
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) {
newBlockId = mappingData.getNewBlockStateId(newBlockId);
}
Expand Down

0 comments on commit a57e7b5

Please sign in to comment.