Skip to content

Commit fba8333

Browse files
committed
Fix backwards compatibility with 1.19.4
1 parent fffb0c1 commit fba8333

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/util

worldguard-bukkit/src/main/java/com/sk89q/worldguard/bukkit/util/Materials.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ public final class Materials {
5353
private static final Set<PotionEffectType> DAMAGE_EFFECTS = new HashSet<>();
5454

5555
private static void putMaterialTag(Tag<Material> tag, Integer value) {
56+
if (tag == null) return;
5657
tag.getValues().forEach(mat -> MATERIAL_FLAGS.put(mat, value));
5758
}
58-
private static Tag<Material> SIGNS_TAG;
59+
private static Tag<Material> SIGNS_TAG = Tag.SIGNS;
5960

6061
static {
6162
ENTITY_ITEMS.put(EntityType.PAINTING, Material.PAINTING);

0 commit comments

Comments
 (0)