From 975d187034546c01e9fdf14b787a5009717feecc Mon Sep 17 00:00:00 2001 From: Malfrador Date: Thu, 31 Dec 2020 19:31:35 +0100 Subject: [PATCH] Add doors to material tags --- .../0153-Add-Material-Tags.patch | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/Spigot-API-Patches/0153-Add-Material-Tags.patch b/Spigot-API-Patches/0153-Add-Material-Tags.patch index 7b9c60c564..d3531c6de3 100644 --- a/Spigot-API-Patches/0153-Add-Material-Tags.patch +++ b/Spigot-API-Patches/0153-Add-Material-Tags.patch @@ -204,10 +204,10 @@ index 0000000000000000000000000000000000000000..c91ea2a0679a7f3a5627b5a008e0b39d +} diff --git a/src/main/java/com/destroystokyo/paper/MaterialTags.java b/src/main/java/com/destroystokyo/paper/MaterialTags.java new file mode 100644 -index 0000000000000000000000000000000000000000..0328532bb4848d55a719c96ea3df4ac545b5b05a +index 0000000000000000000000000000000000000000..ce19324d4667e8632615b16402743a9c00694d31 --- /dev/null +++ b/src/main/java/com/destroystokyo/paper/MaterialTags.java -@@ -0,0 +1,533 @@ +@@ -0,0 +1,548 @@ +/* + * Copyright (c) 2018 Daniel Ennis (Aikar) MIT License + * @@ -306,6 +306,13 @@ index 0000000000000000000000000000000000000000..0328532bb4848d55a719c96ea3df4ac5 + .add(Material.COOKED_COD, Material.COOKED_SALMON); + + /** ++ * Covers all variants of doors. ++ */ ++ public static final MaterialSetTag DOORS = new MaterialSetTag(keyFor("doors")) ++ .endsWith("_DOOR") ++ .ensureSize("DOORS", 9); ++ ++ /** + * Covers all dyes. + */ + public static final MaterialSetTag DYES = new MaterialSetTag(keyFor("dyes")) @@ -542,6 +549,14 @@ index 0000000000000000000000000000000000000000..0328532bb4848d55a719c96ea3df4ac5 + .ensureSize("TRAPDOORS", 9); + + /** ++ * Covers all wood variants of doors. ++ */ ++ public static final MaterialSetTag WOODEN_DOORS = new MaterialSetTag(keyFor("wooden_doors")) ++ .endsWith("_DOOR") ++ .not(Material.IRON_DOOR) ++ .ensureSize("WOODEN_DOORS", 8); ++ ++ /** + * Covers all wood variants of fences. + */ + public static final MaterialSetTag WOODEN_FENCES = new MaterialSetTag(keyFor("wooden_fences"))