Fixed terrain crash, server-stuff etc

Signed-off-by: MaloW <MaloW@spray.se>