Fixed null pointer due to player resources
Fixed null pointer due to player resources