Skip to content

Commit 5f5c1cf

Browse files
authored
Add files via upload
1 parent 762467b commit 5f5c1cf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/main/java/me/thehandsomeyoni/persistentdataapi/manager/DataRegistry.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
*/
3232
public class DataRegistry {
3333
private Player player;
34-
private ItemStack item;
34+
private ItemStack item = null;
3535
private final PersistentDataType<byte[], byte[]> dataType = PersistentDataType.BYTE_ARRAY;
3636
private ItemMeta meta;
3737
private Block block;
@@ -51,11 +51,11 @@ public DataRegistry(Player player) throws NullPointerException {
5151

5252
/**
5353
* Initializes the DataRegistry of an item.
54-
* @param item The item that the data is stored in.
54+
* @param itemStack The item that the data is stored in.
5555
* @throws NullPointerException If the item is null.
5656
*/
57-
public DataRegistry(ItemStack item) throws NullPointerException {
58-
this.item = item;
57+
public DataRegistry(ItemStack itemStack) throws NullPointerException {
58+
this.item = itemStack;
5959
this.meta = this.item.getItemMeta();
6060
assert meta != null;
6161
this.dataContainer = meta.getPersistentDataContainer();

0 commit comments

Comments
 (0)