Skript

Skript

743k Downloads

Bug in "on drop" event

Logr07 opened this issue ยท 1 comments

commented

Skript/Server Version

22:23:51[INFO] [Skript] Server Version: git-Purpur-2150 (MC: 1.20.4)
22:23:51[INFO] [Skript] Skript Version: 2.8.2 (skriptlang-github)
22:23:51[INFO] [Skript] Installed Skript Addons:
22:23:51[INFO] [Skript] - skript-placeholders v1.6.0 (https://github.com/APickledWalrus/skript-placeholders)
22:23:51[INFO] [Skript] - DiSky v4.12.2-beta1
22:23:51[INFO] [Skript] - skript-reflect v2.4 (https://github.com/SkriptLang/skript-reflect)
22:23:51[INFO] [Skript] - SkBee v3.2.1 (https://github.com/ShaneBeee/SkBee)
22:23:51[INFO] [Skript] - skript-holo v1.0.2 (https://github.com/Blueyescat/skript-holo)
22:23:51[INFO] [Skript] Installed dependencies:
22:23:51[INFO] [Skript] - Vault v1.7.3-CMI
22:23:51[INFO] [Skript] - WorldGuard v7.0.9+5934e49
22:23:51[INFO] [Skript] - Residence v5.1.4.2

Bug Description

When I use code on drop: cancel event, empty my selected slot and drop any item, it duplicates the item.

Expected Behavior

Do not duplicate the dropped item

Steps to Reproduce

  1. Use this code:
    on drop:
    cancel event
  2. take anything to your inventory
  3. empty your selected slot
  4. open your inv
  5. drop any item
  6. see duplicated item you dropped

Errors or Screenshots

No response

Other

I also tried some debug and it does not look like client sided. The duped item is stored in player NBT. I also tried if it isnt minecraft glitch, but other plugin that can prevent item drop does not have this dupe glitch.

Agreement

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

I just found out that this bug is only in Creative mode. In survival inventory it does not duplicate.