mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-04 10:11:29 +01:00
[Bukkit Bug] Fix doors being opened by redstone.
This commit is contained in:
parent
fa4078a2d6
commit
3395b38dfd
1 changed files with 24 additions and 0 deletions
|
@ -0,0 +1,24 @@
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in a new issue