Test inverse
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2023-09-15 17:17:34 +02:00
Ursprung c98ca468fd
Commit 47ae33a92a

Datei anzeigen

@ -29,7 +29,7 @@ public class ViaVersionTranslator implements VersionTranslator {
@Override
public IntFunction<BlockState> blockStateMapper(Player player) {
List<ProtocolPathEntry> path = protocolManager.getProtocolPath(serverVersion.highestSupportedVersion(), Via.getAPI().getPlayerVersion(player.getUniqueId()));
List<ProtocolPathEntry> path = protocolManager.getProtocolPath(Via.getAPI().getPlayerVersion(player.getUniqueId()), serverVersion.highestSupportedVersion());
if(path == null)
return NoVersionTranslator::idToState;
@ -37,7 +37,7 @@ public class ViaVersionTranslator implements VersionTranslator {
for(ProtocolPathEntry entry : path) {
MappingData mappings = entry.protocol().getMappingData();
if(mappings != null)
mappers.add(mappings::getNewBlockStateId);
mappers.add(mappings.getBlockStateMappings().inverse()::getNewId);
}
return id -> {