-
-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NPE on getting stack size of empty object when deleting from saved variables #5270
Comments
Cannot reproduce on 1.19.3 and both Skript 2.6.4 and 2.7 (The code for this DefaultChanger wasn't changed). The error is happening within CraftBukkit so it's a Spigot and/or PaperSpigot issue. Can you try grabbing the latest version of Paper from https://papermc.io/downloads for your version. Type /version to see how many versions you're behind. The current revision of Spigot is R2 and you're on R1. Can you verify this Skript code is similar to what caused the error? on right click on chest:
assert clicked block is a chest with "Was not a chest"
# save a chest block into a var {_a}
set {_chest} to clicked block
message "target block set"
# save a random element of {_a} into a var {_b}
set {_item} to a random item out of all items in {_chest}
# delete {_b} from inventory of {_a}
remove {_item} from inventory of {_chest}
#error |
im running this on purpur (paper fork with more customizability) so this could be an old version issue
|
latest purpur on 1.19.2 still gives the same error, full log here; trying it on latest 1.19.3 |
yup, 1.19.3 R2 does crash
|
Fixed in 2.7.0-beta2 |
Skript/Server Version
Bug Description
removing a saved item from a chest is highly unstable, i tried to save it so i can add it to a later chest, although im sure theres a better way
Expected Behavior
instead of erroring, to remove the item from the chest
Steps to Reproduce
(i'll share the code if necessary because it's a total trainwreck)
Errors or Screenshots
Other
this is a 'dont do that' kind of report since i went for a lazy approach
Agreement
The text was updated successfully, but these errors were encountered: