geforkt von Mirrors/AxiomPaperPlugin
Dieser Commit ist enthalten in:
Ursprung
c98ca468fd
Commit
47ae33a92a
@ -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 -> {
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren