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();
PlayerVaultSlot slot = new PlayerVaultSlot();
slot.position = i;
slot.quantity = -1;
if (item != null) {
slot.item = item.getTypeId();
slot.quantity = item.getAmount();

View File

@ -19,10 +19,10 @@ package us.camin.api;
public class PlayerVaultSlot {
public int item;
public int quantity;
public int id;
public short damage;
public Byte data;
public int position;
public int item = 0;
public int quantity = 0;
public int id = 0;
public short damage = 0;
public Byte data = 0;
public int position = 0;
}