From 3f3055e1d22a5e282a55b2e522c747ba02aee471 Mon Sep 17 00:00:00 2001 From: Zarius Date: Thu, 25 Apr 2013 03:08:24 +1000 Subject: [PATCH] Don't Fire PistonExtendEvent Twice Set data earlier for BlockPiston when extending. Fixes BUKKIT-3523 diff --git a/src/main/java/net/minecraft/server/BlockPiston.java b/src/main/java/net/minecraft/server/BlockPiston.java index 2d9e766..b2c8499 100644 --- a/src/main/java/net/minecraft/server/BlockPiston.java +++ b/src/main/java/net/minecraft/server/BlockPiston.java @@ -71,6 +71,7 @@ public class BlockPiston extends Block { if (event.isCancelled()) { return; } + world.setData(i, j, k, i1 | 8, 2); // CraftBukkit end world.playNote(i, j, k, this.id, 0, i1); -- 1.8.1.2