Picking up lava or water with a bucket sends a huge error to console and acts as an "on break" event. #2645
Labels
bug
An issue that needs to be fixed. Alternatively, a PR fixing an issue.
completed
The issue has been fully resolved and the change will be in the next Skript update.
priority: medium
Issues that are detrimental to user experience (prohibitive bugs or lack of useful implementation).
Description
This error occurs when a script is listening for an "on break" event and a player picks up water or lava.
Steps to Reproduce
Skript Version: 2.4-beta9
Expected Behavior
Nothing should be sent to the player, however since Skript thinks that picking up lava of water is a "block break" event, it does.
Errors / Screenshots
Console Error: https://gist.github.com/Jayderp/4ec7cd917a89aa567371498ec5c09067
Server Information
Additional Context
on break: if event-block is not dirt, lava, or water: send "&c&lYOU ARE BLIND! &6Unfortunately, this is not dirt." to player cancel the drops drop dirt at location of event-block else: set {_c} to random integer between 1 and 3 add all items to {_i::*} set {_item} to {_c} of random element out of {_i::*} wait 1 tick if {_item} contains "floor", "ender portal block", "attached", "powered", "air", "command", "structure block", "structure void", or "barrier": send "&c&lYOU GOT UNLUCKY! &6Unfortunately, this block would've dropped an illegal item. Sorry." to player stop else: wait 1 tick send "&a&lITEM FOUND! &a%{_item}%" drop {_item} at location of event-block
The text was updated successfully, but these errors were encountered: