Update for 1.0.0
This commit is contained in:
@@ -40,7 +40,7 @@ public class ItemBed extends Item {
|
||||
b0 = 1;
|
||||
}
|
||||
|
||||
if (entityhuman.c(i, j, k) && entityhuman.c(i + b0, j, k + b1)) {
|
||||
if (entityhuman.d(i, j, k) && entityhuman.d(i + b0, j, k + b1)) {
|
||||
if (world.isEmpty(i, j, k) && world.isEmpty(i + b0, j, k + b1) && world.e(i, j - 1, k) && world.e(i + b0, j - 1, k + b1)) {
|
||||
CraftBlockState blockState = CraftBlockState.getBlockState(world, i, j, k); // CraftBukkit
|
||||
|
||||
@@ -55,7 +55,10 @@ public class ItemBed extends Item {
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
world.setTypeIdAndData(i + b0, j, k + b1, blockbed.id, i1 + 8);
|
||||
if (world.getTypeId(i, j, k) == blockbed.id) {
|
||||
world.setTypeIdAndData(i + b0, j, k + b1, blockbed.id, i1 + 8);
|
||||
}
|
||||
|
||||
--itemstack.count;
|
||||
return true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user