25 lines
1015 B
Diff
25 lines
1015 B
Diff
|
From 0f5da2b72da04942f5d6971bdab7b4d41ebfd3f8 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
|
||
|
|