We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13963da commit 95f7c5dCopy full SHA for 95f7c5d
src/main/java/fr/zcraft/quartzlib/components/nbt/NBT.java
@@ -305,7 +305,11 @@ private static Object getMcNBTCompound(ItemStack item) throws NMSException {
305
tagCompound = Reflection.call(mcItemStack.getClass(), mcItemStack, "t");
306
} catch (Exception e) {
307
//1.17
308
- tagCompound = Reflection.call(mcItemStack.getClass(), mcItemStack, "a");
+ try {
309
+ tagCompound = Reflection.call(mcItemStack.getClass(), mcItemStack, "getTag");
310
+ } catch (Exception e2) {
311
+ tagCompound = Reflection.call(mcItemStack.getClass(), mcItemStack, "a");
312
+ }
313
}
314
315
if (tagCompound == null) {
0 commit comments