mirror of
https://github.com/taoneill/war.git
synced 2024-11-27 20:59:39 +01:00
Last little useless item handling change before 1.3 release.
This commit is contained in:
parent
1c7bf3c7f2
commit
e32745662b
@ -108,8 +108,7 @@ public class WarPlayerListener extends PlayerListener {
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
Item item = event.getItemDrop();
|
Item item = event.getItemDrop();
|
||||||
if(item instanceof CraftItem) {
|
ItemStack itemStack = item.getItemStack();
|
||||||
ItemStack itemStack = ((CraftItem)item).getItemStack();
|
|
||||||
if(itemStack != null
|
if(itemStack != null
|
||||||
&& itemStack.getType() == team.getKind().getMaterial()
|
&& itemStack.getType() == team.getKind().getMaterial()
|
||||||
&& itemStack.getData().getData() == team.getKind().getData()) {
|
&& itemStack.getData().getData() == team.getKind().getData()) {
|
||||||
@ -127,7 +126,6 @@ public class WarPlayerListener extends PlayerListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void onPlayerPickupItem(PlayerPickupItemEvent event) {
|
public void onPlayerPickupItem(PlayerPickupItemEvent event) {
|
||||||
Player player = event.getPlayer();
|
Player player = event.getPlayer();
|
||||||
|
Loading…
Reference in New Issue
Block a user