diff --git a/bukkit/src/main/java/net/william278/husksync/data/BukkitData.java b/bukkit/src/main/java/net/william278/husksync/data/BukkitData.java index 7d93c9bd..051a3bee 100644 --- a/bukkit/src/main/java/net/william278/husksync/data/BukkitData.java +++ b/bukkit/src/main/java/net/william278/husksync/data/BukkitData.java @@ -95,14 +95,9 @@ public abstract class BukkitData implements Data { @Override public void setContents(@NotNull Data.Items contents) { - System.arraycopy( - ((BukkitData.Items) contents).getContents(), - 0, this.contents, - 0, this.contents.length - ); + this.setContents(((BukkitData.Items) contents).getContents()); } - @SuppressWarnings("unused") public void setContents(@NotNull ItemStack[] contents) { System.arraycopy(contents, 0, this.contents, 0, this.contents.length); }