From 8073089da43b0470f66b1c2443096e2447745475 Mon Sep 17 00:00:00 2001 From: sk89q Date: Tue, 30 Nov 2010 17:24:07 -0800 Subject: [PATCH] Updated for Minecraft update. Untested. --- src/WorldGuardListener.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/WorldGuardListener.java b/src/WorldGuardListener.java index c8b7c3d2..1abec67b 100644 --- a/src/WorldGuardListener.java +++ b/src/WorldGuardListener.java @@ -388,13 +388,13 @@ public boolean onCommand(Player player, String[] split) { } else if ((split[0].equalsIgnoreCase("/stack") || split[0].equalsIgnoreCase("/;")) && player.canUseCommand("/stack")) { - hl[] items = player.getInventory().getArray(); + hm[] items = player.getInventory().getArray(); int len = items.length; int affected = 0; for (int i = 0; i < len; i++) { - hl item = items[i]; + hm item = items[i]; // Avoid infinite stacks and stacks with durability if (item == null || item.a <= 0 || item.d > 0) { @@ -411,7 +411,7 @@ public boolean onCommand(Player player, String[] split) { // Find another stack of the same type for (int j = i + 1; j < len; j++) { - hl item2 = items[j]; + hm item2 = items[j]; // Avoid infinite stacks and stacks with durability if (item2 == null || item2.a <= 0 || item2.d > 0) { @@ -569,7 +569,7 @@ public boolean onItemPickUp(Player player, Item item) { @Override public boolean onInventoryChange(Player player) { if (blacklist != null && blacklist.hasOnAcquire()) { - hl[] items = player.getInventory().getArray(); + hm[] items = player.getInventory().getArray(); boolean needUpdate = false; for (int i = 0; i < items.length; i++) {