feat: Support for 1.18.2 (#1641)

* feat: Preliminary work for 1.18.2

* Update SpigotNames to 1.18.2 (#1642)

* 1.18.2 / Biome-Holders, regeneration (#1645)

* 1.18.2 / Biome-Holders, regeneration

* fix: reuse old structure sets

* build: Update dev bundles

* fix: Don't log regen world generation

* fix: Run DataConverter with CBT

* fix: Override `#toNativeBinary`

* fix: Exception on regen

Co-Authored-By: Pierre Maurice Schwang <mail@pschwang.eu>

* refactor: Minor cleanup

Co-authored-by: Aurora <21148213+aurorasmiles@users.noreply.github.com>
Co-authored-by: Pierre Maurice Schwang <mail@pschwang.eu>
This commit is contained in:
Alex
2022-03-07 15:20:05 +01:00
committed by GitHub
parent 668227ee6c
commit 345785a25e
28 changed files with 8481 additions and 146 deletions

View File

@ -26,6 +26,7 @@ import org.bukkit.Material;
import org.bukkit.NamespacedKey;
import org.bukkit.Tag;
import java.util.HashSet;
import java.util.Set;
import java.util.stream.Collectors;
@ -41,6 +42,9 @@ public class BukkitBlockCategoryRegistry implements BlockCategoryRegistry {
String namespace = split.length > 1 ? split[0] : "minecraft";
String key = split.length > 1 ? split[1] : category;
Tag<Material> tag = Bukkit.getTag(Tag.REGISTRY_BLOCKS, new NamespacedKey(namespace, key), Material.class);
if (tag == null) {
return new HashSet<>();
}
return getFromBukkitTag(tag);
}