Fork of Poseidon providing Bukkit #1060 to older Beta versions (b1.0-b1.7.3)
at develop 27 lines 752 B view raw
1package net.minecraft.server; 2 3public class BlockWorkbench extends Block { 4 5 protected BlockWorkbench(int i) { 6 super(i, Material.WOOD); 7 this.textureId = 59; 8 } 9 10 public int a(int i) { 11 return i == 1 ? this.textureId - 16 : (i == 0 ? Block.WOOD.a(0) : (i != 2 && i != 4 ? this.textureId : this.textureId + 1)); 12 } 13 14 public boolean interact(World world, int i, int j, int k, EntityHuman entityhuman) { 15 if (world.isStatic) { 16 return true; 17 } else { 18 // uberbukkit 19 if (entityhuman instanceof EntityPlayer) { 20 ((EntityPlayer) entityhuman).isInWorkbench = true; 21 } 22 23 entityhuman.b(i, j, k); 24 return true; 25 } 26 } 27}