File Details
SunKillPigZombie
- B
- Apr 29, 2012
- 6.69 KB
- 746
- CB 1.2.5-R1.0
File Name
SunKillPigZombie.jar
Supported Versions
- CB 1.2.5-R1.0
- Fixed issue where this plugin stopped Monster Apocalypse from spawning mobs.
- Fixed performance issue
- Saves dmgPerTick setting
In-depth changes: Instead of looping through all Entities each second looking for PigZombies, I've rewritten this to keep an ArrayList of PigZombies, and loop through the list every second instead. When an Entity spawns I capture it via onCreatureSpawn and if it's a PigZombie I add it the the ArrayList. Also 2.5 seconds after a PlayerJoins I loop through all Entities and add any PigZombies.

