[SPIGOT-822] the BlockPistonRetractEvent BlockFace getDirection() for Sticky Piston is Opposite Created: 20/Apr/15 Updated: 13/Oct/16 |
|
Status: | Open |
Project: | Spigot |
Component/s: | None |
Affects Version/s: | None |
Fix Version/s: | None |
Type: | Bug | Priority: | Minor |
Reporter: | Meano | Assignee: | md_5 |
Resolution: | Unresolved | Votes: | 0 |
Labels: | 1.8, bug, bukkit, event, spigot | ||
Environment: |
Java 8 Linux or Windows |
Attachments: |
![]() ![]() ![]() |
||||||||||||
Issue Links: |
|
||||||||||||
Plugin: | none |
Description |
this bug has already existed for a long time |
Comments |
Comment by PseudoKnight [ 04/Jun/15 ] |
Also, getRetractLocation() returns the incorrect location based on the opposite direction. No doubt this encouraged the view point that the direction was incorrect as well. But it looks like that method was deprecated at some point. Still, it caused some problems with plugins using this event. |
Comment by md_5 [ 04/Jun/15 ] |
Ok so basically: If no one has any issues with this, I would like to amend the javadoc and then consider this issue solved. |
Comment by Meano [ 20/Apr/15 ] |
The founction's description in JavaDoc is "Return the direction in which the piston will operate." and returned the direction of the piston. when BlockPistonRetractEvent called by the normal piston,the relative block in that direction is the PISTON_EXTENSION. |
Comment by Black Hole [ 20/Apr/15 ] |
Works as indented. Direction is direction the blocks are moved. |
Comment by SpigotMC [ 20/Apr/15 ] |
Your build is not the latest and therefore may be the reason you are having this issue. Spigot is 22 version(s) behind. CraftBukkit is 48 version(s) behind. This message was automatically generated and is not guaranteed to be a solution to your issue. |