From 2bdcb663884cf2222e29995f7968ad8b39f478c4 Mon Sep 17 00:00:00 2001 From: Trever Fischer Date: Mon, 19 Nov 2012 01:10:58 -0500 Subject: [PATCH] Add some defaults --- src/main/java/us/camin/Plugin.java | 1 - src/main/java/us/camin/api/PlayerVaultSlot.java | 12 ++++++------ 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/main/java/us/camin/Plugin.java b/src/main/java/us/camin/Plugin.java index 094d73b..29c5f31 100644 --- a/src/main/java/us/camin/Plugin.java +++ b/src/main/java/us/camin/Plugin.java @@ -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(); diff --git a/src/main/java/us/camin/api/PlayerVaultSlot.java b/src/main/java/us/camin/api/PlayerVaultSlot.java index 5de44dc..6ead6c4 100644 --- a/src/main/java/us/camin/api/PlayerVaultSlot.java +++ b/src/main/java/us/camin/api/PlayerVaultSlot.java @@ -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; }