Added %quality% placeholder & Bottled Materials

issue #259
This commit is contained in:
Sn0wStorm
2020-04-13 13:52:57 +02:00
parent 2cd52955a0
commit 786a3c5741
19 changed files with 56 additions and 32 deletions
@@ -129,6 +129,15 @@ public class LegacyUtil {
return false;
}
public static boolean isBottle(Material type) {
if (type == Material.POTION) return true;
if (!P.use1_9) return false;
if (type == Material.LINGERING_POTION || type == Material.SPLASH_POTION) return true;
if (!P.use1_13) return false;
if (type == Material.EXPERIENCE_BOTTLE) return true;
return type.name().equals("HONEY_BOTTLE");
}
public static boolean areStairsInverted(Block block) {
if (!P.use1_13) {
@SuppressWarnings("deprecation")