Fix crash in world.cpp

https://github.com/ApocalypseCoreteam/ApocalypseCore/issues/4