set wrench stack size to 1
This commit is contained in:
parent
382c38ed10
commit
f1cbfc471b
1 changed files with 1 additions and 2 deletions
|
@ -32,10 +32,9 @@ public class ItemWrench extends ItemTR implements ITexturedItem {
|
||||||
public ItemWrench() {
|
public ItemWrench() {
|
||||||
setCreativeTab(TechRebornCreativeTabMisc.instance);
|
setCreativeTab(TechRebornCreativeTabMisc.instance);
|
||||||
setUnlocalizedName("techreborn.wrench");
|
setUnlocalizedName("techreborn.wrench");
|
||||||
|
setMaxStackSize(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ) {
|
public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ) {
|
||||||
if(world.isAirBlock(pos) || !player.isSneaking()){
|
if(world.isAirBlock(pos) || !player.isSneaking()){
|
||||||
|
|
Loading…
Add table
Reference in a new issue