Add some defaults

This commit is contained in:
Trever Fischer 2012-11-19 01:10:58 -05:00
parent 26e5b14d6e
commit 2bdcb66388
2 changed files with 6 additions and 7 deletions

View File

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

View File

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