testserver/CraftBukkit-Patches/0065-Fix-doors-being-opened...

25 lines
1015 B
Diff
Raw Normal View History

From 1e8b6aecceebd6d0fb2e9da09df4ce587b63d0c2 Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au>
Date: Sun, 1 Dec 2013 17:28:40 +1100
Subject: [PATCH] Fix doors being opened by redstone.
diff --git a/src/main/java/net/minecraft/server/BlockDoor.java b/src/main/java/net/minecraft/server/BlockDoor.java
index 046ffb8..d9be84c 100644
--- a/src/main/java/net/minecraft/server/BlockDoor.java
+++ b/src/main/java/net/minecraft/server/BlockDoor.java
@@ -166,8 +166,8 @@ public class BlockDoor extends Block {
if (!world.isStatic) {
this.b(world, i, j, k, l, 0);
}
- // CraftBukkit start
- } else if (l > 0 && Block.e(l).isPowerSource()) {
+ } else {
+ // CraftBukkit start
org.bukkit.World bworld = world.getWorld();
org.bukkit.block.Block bukkitBlock = bworld.getBlockAt(i, j, k);
org.bukkit.block.Block blockTop = bworld.getBlockAt(i, j + 1, k);
--
1.8.3.2