mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
Made drill be openable again. Closes #89
This commit is contained in:
parent
5faa779725
commit
d2a5f3bb17
1 changed files with 1 additions and 1 deletions
|
@ -167,7 +167,7 @@ public class ItemDrill extends ItemEnergy{
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ActionResult<ItemStack> onItemRightClick(ItemStack stack, World world, EntityPlayer player, EnumHand hand){
|
public ActionResult<ItemStack> onItemRightClick(ItemStack stack, World world, EntityPlayer player, EnumHand hand){
|
||||||
if(!world.isRemote && player.isSneaking() && stack == player.getActiveItemStack()){
|
if(!world.isRemote && player.isSneaking()){
|
||||||
player.openGui(ActuallyAdditions.instance, GuiHandler.GuiTypes.DRILL.ordinal(), world, (int)player.posX, (int)player.posY, (int)player.posZ);
|
player.openGui(ActuallyAdditions.instance, GuiHandler.GuiTypes.DRILL.ordinal(), world, (int)player.posX, (int)player.posY, (int)player.posZ);
|
||||||
}
|
}
|
||||||
return new ActionResult<ItemStack>(EnumActionResult.PASS, stack);
|
return new ActionResult<ItemStack>(EnumActionResult.PASS, stack);
|
||||||
|
|
Loading…
Reference in a new issue