Fix crash in world.cpp

https://github.com/ApocalypseCoreteam/ApocalypseCore/issues/4
Merge pull request #1 from ApocalypseCoreteam/master

pull