@Override
 public void setTargetedLocation(@Nullable Vector3d vec) {
   this.targetedLocation = vec != null ? vec : VecHelper.toVector3d(this.worldObj.getSpawnPoint());
   if (!((Object) this instanceof EntityPlayerMP)) {
     this.worldObj.setSpawnPoint(VecHelper.toBlockPos(this.targetedLocation));
   }
 }
 @Inject(
     method = "<init>(Lnet/minecraft/world/World;Lcom/mojang/authlib/GameProfile;)V",
     at = @At("RETURN"))
 public void construct(World worldIn, GameProfile gameProfileIn, CallbackInfo ci) {
   this.targetedLocation = VecHelper.toVector3d(worldIn.getSpawnPoint());
 }