Challenge: Deal with rotatable block issues.
Psithief opened this issue ยท 1 comments
(So I'll try to implement this)
Issue: Bukkit fires the BlockPlaceEvent before the minecraft server calculates the associated rotation data.
This messes up placing rotatable blocks. The expected data value for the rotation defined in the configuration will not match what Bukkit tells PreciousStones.
Bukkit have marked this issue as Won't Fix
, so PS has to work around it.
Here is a short list of rotatable or otherwise data-contaminated blocks that should have data 0
at all times in PS config/database and only ever compared against data 0
:
- Chest
54
- Ender Chest
130
- Furnace
61
- Leaves
18
(unset bit 0x4 - theplayer placed this block
bit) - Note block
25
- Dispenser
23
- Cobble stairs
67
- Oak wood stairs
53
- Brick stairs
108
- Stone brick stairs
109
- Sandstone Stairs
128
- Spruce Wood Stairs
134
- Birch Wood Stairs
135
- Jungle Wood Stairs
136
- Pumpkins
86
- Jack'O'Lanterns
91
- Fence gate
107
Here is a continuation of the above list, but for less popular block choices:
- Piston
33
, Sticky Piston29
- Torch
50
- Ladders
65
- Vines
106
- Trapdoors
96
- Lily Pads
111
- Stone button
77
- Levers
69