Skip to content

Arithmetic with expressions not working #8080

@ShaneBeee

Description

@ShaneBeee

Skript/Server Version

> sk info
[09:39:49 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[09:39:49 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[09:39:49 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[09:39:49 INFO]: [Skript] Server Version: 1.21.8-11-a5f2f61 (MC: 1.21.8)
[09:39:49 INFO]: [Skript] Skript Version: 2.12.0 (skriptlang-github)
[09:39:49 INFO]: [Skript] Installed Skript Addons: None
[09:39:49 INFO]: [Skript] Installed dependencies: None

Bug Description

When using arithmetic with an expression, it fails to parse.

Expected Behavior

It should parse as it did pre 2.12

Steps to Reproduce

simple code:

on load:
	set {_i} to (10 * 10) of diamond

Errors or Screenshots

error from above code:

[09:38:42 INFO]: Line 3: (test.sk)
[09:38:42 INFO]:     A 10 * 10 is not a valid type.
[09:38:42 INFO]:     Line: set {_i} to (10 * 10) of diamond

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.priority: mediumIssues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions