Skip to content

%direction% %location% will actually modify the location #5322

Closed
@JohnHeikens

Description

@JohnHeikens

Skript/Server Version

[Wed 21:13:46 INFO ] [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
  [Wed 21:13:46 INFO ] [Skript] Skript's documentation can be found here: https://skriptlang.github.io/Skript
  [Wed 21:13:46 INFO ] [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
  [Wed 21:13:46 INFO ] [Skript] Server Version: git-Paper-411 (MC: 1.17.1)
  [Wed 21:13:46 INFO ] [Skript] Skript Version: 2.6.4
  [Wed 21:13:46 INFO ] [Skript] Installed Skript Addons: 
  [Wed 21:13:46 INFO ] [Skript]  - AdvancementsAddon v1.0.0
  [Wed 21:13:46 INFO ] [Skript]  - Skacket v1.0.13
  [Wed 21:13:46 INFO ] [Skript]  - SkUniversal v2.13
  [Wed 21:13:46 INFO ] [Skript]  - DiSky v4.6.0
  [Wed 21:13:46 INFO ] [Skript]  - skUtilities v0.9.2 (https://tim740.github.io/)
  [Wed 21:13:46 INFO ] [Skript]  - skript-reflect v2.3 (https://github.com/TPGamesNL/skript-reflect)
  [Wed 21:13:46 INFO ] [Skript]  - skript-db v1.3.6
  [Wed 21:13:46 INFO ] [Skript]  - skRayFall v1.9.27 (https://sk.rayfall.net/)
  [Wed 21:13:46 INFO ] [Skript]  - SkQuery v4.1.7
  [Wed 21:13:46 INFO ] [Skript]  - SkBee v1.15.1 (https://github.com/ShaneBeee/SkBee)
  [Wed 21:13:46 INFO ] [Skript]  - WolvSK v1.7.2
  [Wed 21:13:46 INFO ] [Skript]  - RediSkript v1.3.6-SNAPSHOT
  [Wed 21:13:46 INFO ] [Skript] Installed dependencies: 
  [Wed 21:13:46 INFO ] [Skript]  - SQLibrary v7.1
  [Wed 21:13:46 INFO ] [Skript]  - Vault v1.7.3-b131
  [Wed 21:13:46 INFO ] [Skript]  - WorldGuard v7.0.6+1cff55f

Bug Description

when evaluating %direction% %location% (for example 'the block above expr-1'), expr-1 will actually get modified. when expr-q is queried after, it will have the result of the expression as value instead of it's original value.

Expected Behavior

expr-1 should not get modified at all when doing any get expressions on it.

Steps to Reproduce

condition test %location%:
    check:
        senddebug "loc1: %expr-1% -> below: %block below expr-1%" #expr-1 is modified here (the 'blow below expr-1' modifies it)
        
        senddebug "loc2: %expr-1% -> below: %block below expr-1%"

Errors or Screenshots

image

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAn issue that needs to be fixed. Alternatively, a PR fixing an issue.completedThe issue has been fully resolved and the change will be in the next Skript update.enhancementFeature request, an issue about something that could be improved, or a PR improving something.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions