Update for 1.0.0

This commit is contained in:
Erik Broes
2011-11-20 00:01:14 -08:00
committed by Erik Broes
parent 589f66bd1b
commit 345ea36c7b
153 changed files with 6128 additions and 4617 deletions

View File

@@ -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 {