9
0
mirror of https://github.com/WiIIiam278/HuskSync.git synced 2025-12-19 14:59:21 +00:00

Slightly improve BukkitData.Items#setContents method

This commit is contained in:
William
2023-09-23 15:15:10 +01:00
parent 0caec74436
commit 2b55e129b3

View File

@@ -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);
}