Skip to content

Commit c1967db

Browse files
committed
Fixed 1st slot not being counted.
Signed-off-by: Spideynn <[email protected]>
1 parent b3aa90f commit c1967db

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/bin/
2+
.classpath
3+
.project
4+
.settings/

src/net/spideynn/bukkit/invapi_json/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public boolean onCommand(CommandSender sender, Command command,
3131
args[1])).getInventory();
3232
JSONObject mainInv = new JSONObject();
3333

34-
for (int i=39; i>0; i--) {
34+
for (int i=39; i >= 0; i--) {
3535
ItemStack stack = inventory.getItem(i);
3636
JSONObject inv = new JSONObject();
3737
inv.put("id",Integer.valueOf(i));

0 commit comments

Comments
 (0)