'resources' directory gets created automatically

Fixing crashes (invalid pEntity -> crash)