Mirror von
https://github.com/GeyserMC/Geyser.git
synchronisiert 2024-11-03 14:50:19 +01:00
Fix block unique Java IDs (#2390)
Dieser Commit ist enthalten in:
Ursprung
a947f950fa
Commit
4e629feee8
@ -270,12 +270,6 @@ public class BlockRegistryPopulator {
|
||||
builder.pickItem(pickItemNode.textValue());
|
||||
}
|
||||
|
||||
builder.javaIdentifier(javaId);
|
||||
builder.javaBlockId(uniqueJavaId);
|
||||
|
||||
BlockRegistries.JAVA_IDENTIFIERS.register(javaId, javaRuntimeId);
|
||||
BlockRegistries.JAVA_BLOCKS.register(javaRuntimeId, builder.build());
|
||||
|
||||
BlockStateValues.storeBlockStateValues(entry.getKey(), javaRuntimeId, entry.getValue());
|
||||
|
||||
String cleanJavaIdentifier = entry.getKey().split("\\[")[0];
|
||||
@ -286,6 +280,12 @@ public class BlockRegistryPopulator {
|
||||
BlockRegistries.JAVA_CLEAN_IDENTIFIERS.register(uniqueJavaId, cleanJavaIdentifier);
|
||||
}
|
||||
|
||||
builder.javaIdentifier(javaId);
|
||||
builder.javaBlockId(uniqueJavaId);
|
||||
|
||||
BlockRegistries.JAVA_IDENTIFIERS.register(javaId, javaRuntimeId);
|
||||
BlockRegistries.JAVA_BLOCKS.register(javaRuntimeId, builder.build());
|
||||
|
||||
// Keeping this here since this is currently unchanged between versions
|
||||
if (!cleanJavaIdentifier.equals(bedrockIdentifier)) {
|
||||
BlockRegistries.JAVA_TO_BEDROCK_IDENTIFIERS.register(cleanJavaIdentifier, bedrockIdentifier);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren