Small cleanups for dedicated server

This commit is contained in:
Christian 2012-10-14 00:00:56 -04:00
parent 87dc61c615
commit 36b7a92116
2 changed files with 4 additions and 3 deletions

View file

@ -93,7 +93,7 @@ public class BlockAssemblyTable extends BlockContainer {
@Override
@SideOnly(Side.CLIENT)
public void getSubBlocks(int par1, CreativeTabs par2CreativeTabs, List par3List) {
par3List.add(new ItemStack(this,0,0));
par3List.add(new ItemStack(this,0,1));
par3List.add(new ItemStack(this,1,0));
par3List.add(new ItemStack(this,1,1));
}
}

View file

@ -7,6 +7,7 @@ import net.minecraft.src.ItemStack;
public class ItemAssemblyTable extends ItemBlock {
public ItemAssemblyTable(int par1) {
super(par1);
setMaxDamage(0);
setHasSubtypes(true);
}
@ -17,6 +18,6 @@ public class ItemAssemblyTable extends ItemBlock {
@Override
public int getMetadata(int par1) {
return par1 > 0 && par1 < 2 ? par1 : 0;
return par1 == 1 ? 1 : 0;
}
}