Add some defaults
This commit is contained in:
parent
26e5b14d6e
commit
2bdcb66388
@ -286,7 +286,6 @@ public class Plugin extends JavaPlugin {
|
|||||||
ItemStack item = items.next();
|
ItemStack item = items.next();
|
||||||
PlayerVaultSlot slot = new PlayerVaultSlot();
|
PlayerVaultSlot slot = new PlayerVaultSlot();
|
||||||
slot.position = i;
|
slot.position = i;
|
||||||
slot.quantity = -1;
|
|
||||||
if (item != null) {
|
if (item != null) {
|
||||||
slot.item = item.getTypeId();
|
slot.item = item.getTypeId();
|
||||||
slot.quantity = item.getAmount();
|
slot.quantity = item.getAmount();
|
||||||
|
@ -19,10 +19,10 @@ package us.camin.api;
|
|||||||
|
|
||||||
|
|
||||||
public class PlayerVaultSlot {
|
public class PlayerVaultSlot {
|
||||||
public int item;
|
public int item = 0;
|
||||||
public int quantity;
|
public int quantity = 0;
|
||||||
public int id;
|
public int id = 0;
|
||||||
public short damage;
|
public short damage = 0;
|
||||||
public Byte data;
|
public Byte data = 0;
|
||||||
public int position;
|
public int position = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user