From 78ad21fff9283d8562169e85c4edcd2c726cca62 Mon Sep 17 00:00:00 2001 From: HexedHero <6012891+HexedHero@users.noreply.github.com> Date: Thu, 29 Oct 2020 02:41:38 +0000 Subject: [PATCH] Added Netherite armor/tools to categories --- .../me/badbones69/crazyauctions/api/Category.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/main/java/me/badbones69/crazyauctions/api/Category.java b/src/main/java/me/badbones69/crazyauctions/api/Category.java index b70e74b..f630ef1 100644 --- a/src/main/java/me/badbones69/crazyauctions/api/Category.java +++ b/src/main/java/me/badbones69/crazyauctions/api/Category.java @@ -68,6 +68,12 @@ public enum Category { ma.add(Material.DIAMOND_CHESTPLATE); ma.add(Material.DIAMOND_LEGGINGS); ma.add(Material.DIAMOND_BOOTS); + if (Version.getCurrentVersion().isNewer(Version.v1_15_R1)) { + ma.add(Material.NETHERITE_HELMET); + ma.add(Material.NETHERITE_CHESTPLATE); + ma.add(Material.NETHERITE_LEGGINGS); + ma.add(Material.NETHERITE_BOOTS); + } return ma; } @@ -107,6 +113,11 @@ public enum Category { ma.add(Material.STONE_HOE); ma.add(Material.IRON_HOE); ma.add(Material.DIAMOND_HOE); + if (Version.getCurrentVersion().isNewer(Version.v1_15_R1)) { + ma.add(Material.NETHERITE_PICKAXE); + ma.add(Material.NETHERITE_AXE); + ma.add(Material.NETHERITE_HOE); + } return ma; } @@ -130,6 +141,10 @@ public enum Category { ma.add(Material.IRON_AXE); ma.add(Material.DIAMOND_AXE); ma.add(Material.BOW); + if (Version.getCurrentVersion().isNewer(Version.v1_15_R1)) { + ma.add(Material.NETHERITE_SWORD); + ma.add(Material.NETHERITE_AXE); + } return ma; }