Fix a null pointer related to Supports hitting mobs.

anvil_rework
sigonasr2 11 years ago
parent ab148c67a2
commit 7e96105941
  1. BIN
      BankEconomyMod/bin/me/kaZep/Base/Main$2.class
  2. BIN
      BankEconomyMod/bin/me/kaZep/Base/Main$3.class
  3. BIN
      BankEconomyMod/bin/me/kaZep/Base/Main$4.class
  4. BIN
      BankEconomyMod/bin/me/kaZep/Base/Main.class
  5. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$4.class
  6. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$5.class
  7. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$6.class
  8. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener.class
  9. 2
      BankEconomyMod/plugin.yml
  10. 8
      BankEconomyMod/src/me/kaZep/Base/Main.java
  11. 2
      BankEconomyMod/src/me/kaZep/Base/PlayerListener.java

@ -1,6 +1,6 @@
name: BankEconomy
main: me.kaZep.Base.Main
version: 1.3.0
version: 256
description: Bank plugin which stores money.
commands:
bankeconomy:

@ -2520,10 +2520,14 @@ public void checkJukeboxes() {
if (Bukkit.getPlayer(supportmoblist.get(i).p.getName())!=null) {
for (int j=0;j<supportmoblist.get(i).id.size();j++) {
if (supportmoblist.get(i).registeredtime<Bukkit.getWorld("world").getFullTime()) {
supportmoblist.remove(i);
i--;
supportmoblist.get(i).id.remove(j);
j--;
}
}
/*if (supportmoblist.get(i).registeredtime<Bukkit.getWorld("world").getFullTime()) {
supportmoblist.remove(i);
i--;
}*/
}
}
LOGGING_UPDATE_COUNTS++; //4

@ -5191,6 +5191,7 @@ public ItemStack getGoodie() {
//Check to see if there are any pies we need to keep for later.
List<ItemStack> items = new ArrayList<ItemStack>();
for (int i=0;i<p.getInventory().getContents().length;i++) {
if (p.getInventory().getContents()[i]!=null) {
if (p.getInventory().getContents()[i].getType()==Material.PUMPKIN_PIE &&
p.getInventory().getContents()[i].hasItemMeta() &&
p.getInventory().getContents()[i].getItemMeta().getLore()!=null) {
@ -5198,6 +5199,7 @@ public ItemStack getGoodie() {
items.add(p.getInventory().getContents()[i]);
}
}
}
for (int i=0;i<pies;i++) {
p.getInventory().remove(Material.PUMPKIN_PIE);
//Remove the pies. Remove the magic pie.

Loading…
Cancel
Save