Make 75% despawning rate even more prevalent.

anvil_rework
sigonasr2 11 years ago
parent c0ce4e58d7
commit 35dc7b9bf6
  1. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$1.class
  2. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$2.class
  3. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$3.class
  4. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$4.class
  5. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$5.class
  6. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener$6.class
  7. BIN
      BankEconomyMod/bin/me/kaZep/Base/PlayerListener.class
  8. 5
      BankEconomyMod/src/me/kaZep/Base/PlayerListener.java

@ -1457,6 +1457,11 @@ public class PlayerListener
}
}
if (despawn) {
if (this.plugin.getConfig().getBoolean("halloween-enabled") && Math.random()<=0.75) {
//Just despawn it right now.
entity.remove();
e.setCancelled(true);
}
double distancefromcity = Math.abs(1627-entity.getLocation().getX())+Math.abs((67-entity.getLocation().getY()))+Math.abs(-267-entity.getLocation().getZ());
int maxgroup=0; //The maximum number of mobs that may be near each other and together when spawning.
double chancer=1.0d; //The percent chance a duplicated mob will form.

Loading…
Cancel
Save