Skip to content

Commit

Permalink
chore(HomeCreatorService): provide player's world during home creation
Browse files Browse the repository at this point in the history
  • Loading branch information
aivruu committed Dec 28, 2024
1 parent b61c79a commit b30a224
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public boolean create(final @NotNull Player player, final @NotNull String homeId
}
final Location at = player.getLocation();
final HomeModelEntity homeModel = new HomeModelEntity(homeId,
new HomePositionValueObject(at.getBlockX(), at.getBlockY(), at.getBlockZ()));
new HomePositionValueObject(player.getWorld(), at.getBlockX(), at.getBlockY(), at.getBlockZ()));
return this.playerHomeController.addHome(player, homeModel);
}
}

0 comments on commit b30a224

Please sign in to comment.