From b30a224b36b63908c0b1281ad32dbf143bc5804a Mon Sep 17 00:00:00 2001 From: aivruu Date: Sat, 28 Dec 2024 14:13:58 -0300 Subject: [PATCH] chore(HomeCreatorService): provide player's world during home creation --- .../aivruu/homes/home/application/HomeCreatorService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/main/java/io/github/aivruu/homes/home/application/HomeCreatorService.java b/api/src/main/java/io/github/aivruu/homes/home/application/HomeCreatorService.java index 95fa700..bb2b626 100644 --- a/api/src/main/java/io/github/aivruu/homes/home/application/HomeCreatorService.java +++ b/api/src/main/java/io/github/aivruu/homes/home/application/HomeCreatorService.java @@ -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); } }