mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-12 04:23:54 +00:00
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:
@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user