mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-25 11:46:45 +01:00
fix: replace deprecated usage of Core's NBTItem class with item-nbt-api
This commit is contained in:
parent
5b5e554af8
commit
0094106b43
@ -1,7 +1,6 @@
|
||||
package com.craftaro.epichoppers.hopper.levels;
|
||||
|
||||
import com.craftaro.core.nms.Nms;
|
||||
import com.craftaro.core.nms.nbt.NBTCore;
|
||||
import com.craftaro.core.third_party.de.tr7zw.nbtapi.NBT;
|
||||
import com.craftaro.core.third_party.de.tr7zw.nbtapi.NBTItem;
|
||||
import com.craftaro.epichoppers.hopper.levels.modules.Module;
|
||||
import org.bukkit.ChatColor;
|
||||
@ -45,9 +44,7 @@ public class LevelManagerImpl implements LevelManager {
|
||||
|
||||
@Override
|
||||
public boolean isEpicHopper(ItemStack item) {
|
||||
NBTCore nbt = Nms.getImplementations().getNbt();
|
||||
|
||||
if (nbt.of(item).has("level")) {
|
||||
if (NBT.readNbt(item).hasTag("level")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user