diff --git a/item/src/main/java/it/angrybear/yagl/items/Item.java b/item/src/main/java/it/angrybear/yagl/items/Item.java index 4086b01f..37ae279e 100644 --- a/item/src/main/java/it/angrybear/yagl/items/Item.java +++ b/item/src/main/java/it/angrybear/yagl/items/Item.java @@ -428,10 +428,13 @@ default I copy(@NotNull Class clazz) { for (final Field field : item.getNonStaticFields()) try { field.setAccessible(true); + ReflectionUtils.getField(this, field.getName()); Object obj1 = field.get(this); item.setFieldObject(field, obj1); } catch (IllegalAccessException e) { throw new RuntimeException(e); + } catch (IllegalArgumentException ignored) { + } return item.getObject(); }