Made terrain resource registering multiplayer-aware. #67