Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-08 04:20:06 +01:00
Set legacy ID when adapter is loaded to enable reading/writing anvil
Dieser Commit ist enthalten in:
Ursprung
663d0139b7
Commit
40b024fbba
@ -313,9 +313,12 @@ public class WorldEditPlugin extends JavaPlugin {
|
|||||||
// Biomes are stored globally in the server. Registries are not kept per-world in Minecraft.
|
// Biomes are stored globally in the server. Registries are not kept per-world in Minecraft.
|
||||||
// The WorldServer get-registries method simply delegates to the MinecraftServer method.
|
// The WorldServer get-registries method simply delegates to the MinecraftServer method.
|
||||||
for (final NamespacedKey biome : ((BukkitImplAdapter<?>) adapter.value().get()).getRegisteredBiomes()) {
|
for (final NamespacedKey biome : ((BukkitImplAdapter<?>) adapter.value().get()).getRegisteredBiomes()) {
|
||||||
if (BiomeType.REGISTRY.get(biome.toString()) == null) { // only register once
|
BiomeType biomeType;
|
||||||
BiomeType.REGISTRY.register(biome.toString(), new BiomeType(biome.toString()));
|
if ((biomeType = BiomeType.REGISTRY.get(biome.toString())) == null) { // only register once
|
||||||
|
biomeType = new BiomeType(biome.toString());
|
||||||
|
BiomeType.REGISTRY.register(biome.toString(), biomeType);
|
||||||
}
|
}
|
||||||
|
biomeType.setLegacyId(adapter.value().get().getInternalBiomeId(biomeType));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!expectFail) {
|
if (!expectFail) {
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren