mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-10 09:02:09 -07:00
Update for 1.0.0
This commit is contained in:
@@ -29,7 +29,7 @@ public class ItemDoor extends Item {
|
||||
block = Block.IRON_DOOR_BLOCK;
|
||||
}
|
||||
|
||||
if (entityhuman.c(i, j, k) && entityhuman.c(i, j + 1, k)) {
|
||||
if (entityhuman.d(i, j, k) && entityhuman.d(i, j + 1, k)) {
|
||||
if (!block.canPlace(world, i, j, k)) {
|
||||
return false;
|
||||
} else {
|
||||
@@ -39,9 +39,8 @@ public class ItemDoor extends Item {
|
||||
if (a(world, i, j, k, i1, block, entityhuman)) {
|
||||
--itemstack.count;
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return false;
|
||||
// CraftBukkit end
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user