We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d130ed commit 2a60ae5Copy full SHA for 2a60ae5
src/main/java/com/github/skriptdev/skript/plugin/elements/expressions/other/ExprLocationOf.java
@@ -29,7 +29,7 @@ public static void register(SkriptRegistration registration) {
29
World world = entity.getWorld();
30
assert world != null;
31
TransformComponent transform = entity.getTransformComponent();
32
- return new Location(world.getName(), transform.getPosition(), transform.getRotation());
+ return new Location(world.getName(), transform.getPosition().clone(), transform.getRotation().clone());
33
} else if (owner instanceof Block block) {
34
return block.getLocation();
35
}
0 commit comments