Updated for 0.2.8.

This commit is contained in:
sk89q 2010-12-04 00:15:50 -08:00
parent 8b3eaa70fb
commit 257c12e727
3 changed files with 8 additions and 5 deletions

View File

@ -1,3 +1,6 @@
1.7.1:
- Updated for v0.2.8.
1.7
- Updated for v0.2.6_02 and hMod b129.
- Added option to prevent water from damaging particular blocks

View File

@ -1,2 +1,2 @@
Manifest-Version: 1.0
WorldGuard-Version: 1.7
WorldGuard-Version: 1.7.1

View File

@ -391,13 +391,13 @@ public boolean onCommand(Player player, String[] split) {
} else if ((split[0].equalsIgnoreCase("/stack")
|| split[0].equalsIgnoreCase("/;"))
&& player.canUseCommand("/stack")) {
hm[] items = player.getInventory().getArray();
hn[] items = player.getInventory().getArray();
int len = items.length;
int affected = 0;
for (int i = 0; i < len; i++) {
hm item = items[i];
hn item = items[i];
// Avoid infinite stacks and stacks with durability
if (item == null || item.a <= 0 || item.d > 0) {
@ -414,7 +414,7 @@ public boolean onCommand(Player player, String[] split) {
// Find another stack of the same type
for (int j = i + 1; j < len; j++) {
hm item2 = items[j];
hn item2 = items[j];
// Avoid infinite stacks and stacks with durability
if (item2 == null || item2.a <= 0 || item2.d > 0) {
@ -572,7 +572,7 @@ public boolean onItemPickUp(Player player, Item item) {
@Override
public boolean onInventoryChange(Player player) {
if (blacklist != null && blacklist.hasOnAcquire()) {
hm[] items = player.getInventory().getArray();
hn[] items = player.getInventory().getArray();
boolean needUpdate = false;
for (int i = 0; i < items.length; i++) {