spaceribs/Spigot — pull request #1 by cehnehdeh (2012-11-13 18:20:40+00:00)
Title: Optimizing "if" checks inside of spawning

Just a note, I haven't modded minecraft before, therefore have no idea on compiling, but they're relatively small changes, I didn't actually write anything, just moved stuff around. Anyway...

I optimized the if checks by adding a more general one; it simply makes sure that it's spawning counter is less than 0. If not, decrement, and return. Inside the "if", I only check for the player when I go to make a zombie, before I start calculating its position and such.