
on piston retracting bug
Closed this issue ยท 4 comments
Skript/Server Version
[20:24:26 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[20:24:26 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[20:24:26 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[20:24:26 INFO]: [Skript] Server Version: 1.21.4-232-12d8fe0 (MC: 1.21.4)
[20:24:26 INFO]: [Skript] Skript Version: 2.11.1 (skriptlang-github)
[20:24:26 INFO]: [Skript] Installed Skript Addons:
[20:24:26 INFO]: [Skript] - skript-placeholders v1.7.0 (https://github.com/APickledWalrus/skript-placeholders)
[20:24:26 INFO]: [Skript] - skRayFall v1.9.28 (https://sk.rayfall.net/)
[20:24:26 INFO]: [Skript] - ItemsAdder v4.0.6 (devs.beer)
[20:24:26 INFO]: [Skript] - SkBee v3.11.2 (https://github.com/ShaneBeee/SkBee)
[20:24:26 INFO]: [Skript] - SkQuery v4.3.2
[20:24:26 INFO]: [Skript] - PlotSk v1.3.2
[20:24:26 INFO]: [Skript] - skript-reflect v2.6 (https://github.com/SkriptLang/skript-reflect)
[20:24:26 INFO]: [Skript] Installed dependencies:
[20:24:26 INFO]: [Skript] - Vault v1.7.3-b131
[20:24:26 INFO]: [Skript] - WorldGuard v7.0.13+82fdc65
Bug Description
Hey, I just noticed that when retracting sticky pistons without a glued-on block, the on piston retracting
get not triggered.
It works with normal pistons and with sticky pistons that have a solid block stick to them.
Expected Behavior
Trigger the event
Steps to Reproduce
- Use this in a script
on piston retracting:
broadcast "test"
- place a sticky piston and test it
Errors or Screenshots
No response
Other
No response
Agreement
- I have read the guidelines above and affirm I am following them with this report.
This doesn't seem like a Skript problem to me, since Skript simply listens to BlockPistonRetractEvent
and doesn't do any special checks or anything.
Yes this seems a Spigot issue:
There is one more inconsistency on Spigot too - the sticky piston doesn't fire retract event if there is no blocks attached to it.
from PaperMC/Paper#9258 (comment)
I suspect it is due to this if statement: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/browse/nms-patches/net/minecraft/world/level/block/piston/BlockPiston.patch#23