Skip to content

ADD/REMOVE changers with object type #18

@miberss

Description

@miberss

Environment Information

[Skript] Server Version: 1.21.8-2483-6c88d74 (MC: 1.21.8)
[Skript] Skript Version: 2.11.2 (skriptlang-github)
[Skript] Installed Skript Addons:
[Skript]  - oopsk v1.0-beta1 (https://github.com/sovdeeth/oopsk)
[Skript]  - SkCheese v1.6
[Skript]  - skript-particle v1.3.2 (https://github.com/sovdeeth/skript-particle)
[Skript]  - skript-reflect v2.6 (https://github.com/SkriptLang/skript-reflect)
[Skript] Installed dependencies: None

Bug Description

Object types are unable to accept ADD/REMOVE changers within structs, however specific types like number are.

Steps to Reproduce

struct B:
	value: object

on script load:
	add value() to {_a}

	set {_b} to B struct
	add value() to {_b}->value

function value() :: object:
	return 123

Errors or Screenshots

Line 8: (test.sk)
  field value of {_b} can't have anything added to it
  Line: add value() to {_b}->value

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions