Skip to content

Commit

Permalink
Fix MetaBaseItem tooltips crash when holding shift (#3248)
Browse files Browse the repository at this point in the history
  • Loading branch information
querns committed Sep 21, 2024
1 parent a97d808 commit e874e97
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/gregtech/api/interfaces/IItemBehaviour.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
import net.minecraft.world.World;
import net.minecraftforge.common.util.ForgeDirection;

import com.google.common.collect.ImmutableList;

import gregtech.api.enums.SubTag;
import gregtech.api.items.MetaBaseItem;

Expand Down Expand Up @@ -64,7 +62,7 @@ boolean onItemUseFirst(E aItem, ItemStack aStack, EntityPlayer aPlayer, World aW
List<String> getAdditionalToolTips(E aItem, List<String> aList, ItemStack aStack);

default List<String> getAdditionalToolTipsWhileSneaking(E aItem, List<String> aList, ItemStack aStack) {
return ImmutableList.of();
return aList;
}

void onUpdate(E aItem, ItemStack aStack, World aWorld, Entity aPlayer, int aTimer, boolean aIsInHand);
Expand Down

0 comments on commit e874e97

Please sign in to comment.