mirror of
https://github.com/GeyserMC/Geyser.git
synced 2025-12-20 15:29:27 +00:00
Update ViaVersion api usage to be compatible with ViaVersion 4.10 (#4606)
This commit is contained in:
@@ -58,7 +58,7 @@ public class GeyserSpigotLegacyNativeWorldManager extends GeyserSpigotNativeWorl
|
|||||||
int newBlockId = oldBlockId;
|
int newBlockId = oldBlockId;
|
||||||
// protocolList should *not* be null; we checked for that before initializing this class
|
// protocolList should *not* be null; we checked for that before initializing this class
|
||||||
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) {
|
||||||
newBlockId = mappingData.getNewBlockStateId(newBlockId);
|
newBlockId = mappingData.getNewBlockStateId(newBlockId);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user