mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2025-01-17 21:51:25 +01:00
Updated for 0.2.8.
This commit is contained in:
parent
8b3eaa70fb
commit
257c12e727
@ -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
|
||||
|
@ -1,2 +1,2 @@
|
||||
Manifest-Version: 1.0
|
||||
WorldGuard-Version: 1.7
|
||||
WorldGuard-Version: 1.7.1
|
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user