Skip to content

Commit af0b740

Browse files
committed
Fixed movehere
1 parent 7d0663c commit af0b740

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/java/eu/decentsoftware/holograms/plugin/commands/HologramSubCommand.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -812,7 +812,12 @@ public CommandHandler getCommandHandler() {
812812
Hologram hologram = Validator.getHologram(args[0], Lang.HOLOGRAM_DOES_NOT_EXIST.getValue());
813813
Player player = Validator.getPlayer(sender);
814814
Location playerLocation = player.getLocation();
815-
hologram.setLocation(playerLocation);
815+
Location location = hologram.getLocation();
816+
location.setWorld(playerLocation.getWorld());
817+
location.setX(playerLocation.getX());
818+
location.setY(playerLocation.getY());
819+
location.setZ(playerLocation.getZ());
820+
hologram.setLocation(location);
816821
hologram.realignLines();
817822
hologram.save();
818823

0 commit comments

Comments
 (0)