mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-25 10:29:41 -05:00
Return the valid max value for piston direction. Fixes BUKKIT-2191
By returning the following value (7) we remove the need to special case pistons in any way (other than the original purpose of this check, which is to ensure pistons have valid data)
This commit is contained in:
1 parent
9ba0ddc292
commit
641ecc4f34
2 files changed
+3
-3
No files matched your search
@@ -429,8 +429,8 @@ public class Chunk {
|
||||
|
||||
if (l != 0) {
|
||||
if (!this.world.isStatic) {
|
||||
// CraftBukkit start - Don't extend piston until data is set, don't "place" if we're processing the event
|
||||
if (!this.world.suppressPhysics && (!(Block.byId[l] instanceof BlockPiston) || i2 != 0)) {
|
||||
// CraftBukkit start - Don't "place" if we're processing the event
|
||||
if (!this.world.suppressPhysics) {
|
||||
Block.byId[l].onPlace(this.world, j2, j, k2);
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
Reference in new issue
Block a user