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
@@ -818,7 +818,7 @@ public class CableBusContainer extends CableBusStorage implements AEMultiTile, I
{
// forge sends activate even when sneaking in some cases (eg emtpy hand)
// if sneaking try shift activate first.
if( player.isShiftKeyDown() && p.part.onShiftActivate( player, hand, pos ) )
if( player.isCrouching() && p.part.onShiftActivate( player, hand, pos ) )
{
return true;
}
@@ -833,7 +833,7 @@ public class CableBusContainer extends CableBusStorage implements AEMultiTile, I
final SelectedPart p = this.selectPart( hitVec );
if( p != null && p.part != null )
{
if( player.isShiftKeyDown() )
if( player.isCrouching() )
{
return p.part.onShiftClicked( player, hand, hitVec );
}