Fix MappingDataBase#getOldBlockId implementation (#4201)

This commit is contained in:
EnZaXD 2024-10-26 17:24:34 +02:00 committed by GitHub
parent 7be7139241
commit 65b76d53ef
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -179,7 +179,7 @@ public class MappingDataBase implements MappingData {
@Override
public int getOldBlockId(final int id) {
return blockMappings.getNewIdOrDefault(id, 1);
return blockMappings.inverse().getNewIdOrDefault(id, 1);
}
@Override