mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-11 02:02:04 -07:00
Update to Minecraft Server 1.2
This commit is contained in:
@@ -16,7 +16,7 @@ public class ItemBlock extends Item {
|
||||
public ItemBlock(int i) {
|
||||
super(i);
|
||||
a = i + 256;
|
||||
a(Block.m[i + 256].a(2));
|
||||
b(Block.m[i + 256].a(2));
|
||||
}
|
||||
|
||||
public boolean a(ItemStack itemstack, EntityPlayer entityplayer, World world, int i, int j, int k, int l) {
|
||||
@@ -31,7 +31,7 @@ public class ItemBlock extends Item {
|
||||
BlockFace faceClicked = CraftBlock.notchToBlockFace(l);
|
||||
// CraftBukkit end
|
||||
|
||||
if (world.a(i, j, k) == Block.aS.bh) {
|
||||
if (world.a(i, j, k) == Block.aS.bi) {
|
||||
l = 0;
|
||||
} else {
|
||||
if (l == 0) {
|
||||
@@ -62,7 +62,7 @@ public class ItemBlock extends Item {
|
||||
Block block = Block.m[a];
|
||||
|
||||
// This executes the placement of the block
|
||||
if (world.d(i, j, k, a)) {
|
||||
if (world.e(i, j, k, a)) {
|
||||
CraftBlock placedBlock = (CraftBlock) blockClicked.getFace(faceClicked) ;
|
||||
CraftItemStack itemInHand = new CraftItemStack(itemstack);
|
||||
CraftPlayer thePlayer = new CraftPlayer(((WorldServer) world).getServer(), (EntityPlayerMP) entityplayer);
|
||||
@@ -91,11 +91,11 @@ public class ItemBlock extends Item {
|
||||
world.c(i, j, k, oldData);
|
||||
} else {
|
||||
world.g(i, j, k);
|
||||
world.g(i, j, k, this.a);
|
||||
world.h(i, j, k, this.a);
|
||||
|
||||
Block.m[a].c(world, i, j, k, l);
|
||||
Block.m[a].a(world, i, j, k, ((EntityLiving) (entityplayer)));
|
||||
world.a((float) i + 0.5F, (float) j + 0.5F, (float) k + 0.5F, block.bq.c(), (block.bq.a() + 1.0F) / 2.0F, block.bq.b() * 0.8F);
|
||||
world.a((float) i + 0.5F, (float) j + 0.5F, (float) k + 0.5F, block.br.c(), (block.br.a() + 1.0F) / 2.0F, block.br.b() * 0.8F);
|
||||
itemstack.a--;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user