Updated Dependencies for 1.16

This commit is contained in:
Sn0wStorm
2020-10-29 17:34:12 +01:00
parent eeb9be74f9
commit 1aae3340a3
3 changed files with 18 additions and 15 deletions
@@ -13,7 +13,6 @@ import com.dre.brewery.integration.item.MMOItemsPluginItem;
import com.dre.brewery.recipe.BCauldronRecipe;
import com.dre.brewery.recipe.RecipeItem;
import com.dre.brewery.utility.LegacyUtil;
import net.mmogroup.mmolib.MMOLib;
import net.mmogroup.mmolib.api.item.NBTItem;
import org.bukkit.GameMode;
import org.bukkit.Material;
@@ -228,7 +227,7 @@ public class IntegrationListener implements Listener {
try {
if (event.getAction() == Action.RIGHT_CLICK_BLOCK && event.hasItem() && event.getHand() == EquipmentSlot.HAND) {
if (event.getClickedBlock() != null && event.getClickedBlock().getType() == Material.CAULDRON) {
NBTItem item = MMOLib.plugin.getNMS().getNBTItem(event.getItem());
NBTItem item = NBTItem.get(event.getItem());
if (item.hasType()) {
for (RecipeItem rItem : BCauldronRecipe.acceptedCustom) {
if (rItem instanceof MMOItemsPluginItem) {
@@ -3,7 +3,6 @@ package com.dre.brewery.integration.item;
import com.dre.brewery.P;
import com.dre.brewery.filedata.BConfig;
import com.dre.brewery.recipe.PluginItem;
import net.mmogroup.mmolib.MMOLib;
import net.mmogroup.mmolib.api.item.NBTItem;
import org.bukkit.inventory.ItemStack;
@@ -21,7 +20,7 @@ public class MMOItemsPluginItem extends PluginItem {
if (!BConfig.hasMMOItems) return false;
try {
NBTItem nbtItem = MMOLib.plugin.getNMS().getNBTItem(item);
NBTItem nbtItem = NBTItem.get(item);
return nbtItem.hasType() && nbtItem.getString("MMOITEMS_ITEM_ID").equalsIgnoreCase(getItemId());
} catch (Throwable e) {
e.printStackTrace();