ActionResultType in onActivated

This commit is contained in:
Sebastian Hartte
2020-06-02 19:15:23 +02:00
parent 3e78c713d1
commit cf9ab8a13b
42 changed files with 135 additions and 181 deletions
@@ -198,7 +198,7 @@ public class ToolMemoryCard extends AEBaseItem implements IMemoryCard
@Override
public ActionResultType onItemUse( ItemUseContext context )
{
if( context.getPlayer().isShiftKeyDown() )
if( context.getPlayer().isCrouching() )
{
if( !context.getPlayer().world.isRemote )
{
@@ -215,7 +215,7 @@ public class ToolMemoryCard extends AEBaseItem implements IMemoryCard
@Override
public ActionResult<ItemStack> onItemRightClick( World w, PlayerEntity player, Hand hand )
{
if( player.isShiftKeyDown() )
if( player.isCrouching() )
{
if( !w.isRemote )
{