3601ca3da5
Bukkit/CraftBukkit#1145 : @Zarius : Don't fire piston extend event twice Bukkit/CraftBukkit#1174 : @millerkil : Prevent plugins causing ghost players Bukkit/CraftBukkit#1177 : @jb-aero : Properly set ambient flag for potion effects
23 Zeilen
864 B
Diff
23 Zeilen
864 B
Diff
From 3f3055e1d22a5e282a55b2e522c747ba02aee471 Mon Sep 17 00:00:00 2001
|
|
From: Zarius <zariust@gmail.com>
|
|
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
|
|
|