diff --git a/src/main/java/com/syncleus/aethermud/storage/graphdb/model/PlayerData.java b/src/main/java/com/syncleus/aethermud/storage/graphdb/model/PlayerData.java index 17c6f4853bd771d77359d8512bb2ce894ec3b716..172f4a67685db9eaf3cc291defadfa58fc07904c 100644 --- a/src/main/java/com/syncleus/aethermud/storage/graphdb/model/PlayerData.java +++ b/src/main/java/com/syncleus/aethermud/storage/graphdb/model/PlayerData.java @@ -160,15 +160,7 @@ public abstract class PlayerData extends AbstractInterceptingVertexFrame { } for( EffectData effect : effects ) { - if (effect instanceof EffectData) { - this.addEffect((EffectData) effect); - } else { - try { - PropertyUtils.copyProperties(this.createEffect(), effect); - } catch (NoSuchMethodException | IllegalAccessException | InvocationTargetException e) { - throw new IllegalStateException("Could not copy properties"); - } - } + this.addEffect(effect); } }