Merge pull request #410 from GunfighterJ/master

Port spawnmob changes to 3.x
Protection cleanup
Small refactors
Removed unnecessary return statements
Update for 1.5