mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-11-05 09:09:40 +01:00
Use PL's itemstack checker instead
This commit is contained in:
parent
1d0a791011
commit
a598884def
@ -1,5 +1,6 @@
|
||||
package me.libraryaddict.disguise.utilities.params.types.custom;
|
||||
|
||||
import com.comphenix.protocol.utility.MinecraftReflection;
|
||||
import com.comphenix.protocol.wrappers.nbt.NbtFactory;
|
||||
import me.libraryaddict.disguise.utilities.DisguiseUtilities;
|
||||
import me.libraryaddict.disguise.utilities.params.types.ParamInfoEnum;
|
||||
@ -65,7 +66,7 @@ public class ParamInfoItemStack extends ParamInfoEnum {
|
||||
}
|
||||
|
||||
// If its not a CraftItemStack
|
||||
if (item.getClass().getSimpleName().equals("ItemStack") && item.hasItemMeta()) {
|
||||
if (!MinecraftReflection.isCraftItemStack(item) && item.hasItemMeta()) {
|
||||
item = ReflectionManager.getCraftItem(item);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user