mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 03:25:15 +01:00
Fixed Doors not dropping when the block they are placed on is removed. Fixes BUKKIT-1292
This commit is contained in:
parent
52ecd60e61
commit
cf2abd20e8
@ -157,7 +157,7 @@ public class BlockDoor extends Block {
|
|||||||
|
|
||||||
if (world.getTypeId(i, j + 1, k) != this.id) {
|
if (world.getTypeId(i, j + 1, k) != this.id) {
|
||||||
world.setTypeId(i, j, k, 0);
|
world.setTypeId(i, j, k, 0);
|
||||||
flag = true;
|
//flag = true; // CraftBukkit
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!world.e(i, j - 1, k)) {
|
if (!world.e(i, j - 1, k)) {
|
||||||
@ -169,11 +169,9 @@ public class BlockDoor extends Block {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (flag) {
|
if (flag) {
|
||||||
/* CraftBukkit start - Move the drop to on break instead of on physics
|
|
||||||
if (!world.isStatic) {
|
if (!world.isStatic) {
|
||||||
this.b(world, i, j, k, i1, 0);
|
this.b(world, i, j, k, i1, 0);
|
||||||
}
|
}
|
||||||
// */
|
|
||||||
} else if (l > 0 && Block.byId[l].isPowerSource()) {
|
} else if (l > 0 && Block.byId[l].isPowerSource()) {
|
||||||
org.bukkit.World bworld = world.getWorld();
|
org.bukkit.World bworld = world.getWorld();
|
||||||
org.bukkit.block.Block block = bworld.getBlockAt(i, j, k);
|
org.bukkit.block.Block block = bworld.getBlockAt(i, j, k);
|
||||||
|
Loading…
Reference in New Issue
Block a user