SPIGOT-7664: Item meta should prevail over block states

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot
2024-05-10 19:33:23 +10:00
parent 317917800c
commit 850e49f268
3 changed files with 15 additions and 3 deletions

View File

@@ -18,7 +18,7 @@
}
};
private static final String REMOVED_PREFIX = "!";
@@ -270,6 +270,38 @@
@@ -270,6 +270,42 @@
a() {}
@@ -31,6 +31,10 @@
+ this.map.remove(type);
+ }
+
+ public boolean isSet(DataComponentType<?> type) {
+ return map.containsKey(type);
+ }
+
+ public boolean isEmpty() {
+ return this.map.isEmpty();
+ }