Skript

Skript

743k Downloads

'contains' Condition is broken for 'event-inventories'

erenkarakal opened this issue ยท 0 comments

commented

Skript/Server Version

[Skript] Server Version: 1.20.6-88-980cff9 (MC: 1.20.6)
[Skript] Skript Version: 2.8.5 (skriptlang-github)
[Skript] Installed Skript Addons: 
[Skript]  - skript-placeholders v1.6.0 (https://github.com/APickledWalrus/skript-placeholders)
[Skript]  - skript-reflect v2.4 (https://github.com/SkriptLang/skript-reflect)
[Skript]  - SkBee v3.5.1 (https://github.com/ShaneBeee/SkBee)
[Skript] Installed dependencies: 
[Skript]  - WorldGuard v7.0.10+d9424b1

Bug Description

when checking if event-inventories contains {some.custom.gui}, the check always fails.

Expected Behavior

when you drag from your own inventory to the custom inventory ({var}) it should cancel the event.
image

Steps to Reproduce

this works:

on inventory drag:
  loop event-inventories:
    if loop-value = {var}:
      cancel event

but this doesn't:

on inventory drag:
  event-inventories contains {var}
  cancel event

Errors or Screenshots

No response

Other

No response

Agreement

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