Skip to content

Commit

Permalink
Fixed nullability problem #7
Browse files Browse the repository at this point in the history
  • Loading branch information
RaymondBlaze committed Jun 2, 2022
1 parent 6753312 commit 763d4a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ org.gradle.daemon=false
# Mod Properties
maven_group=limonblaze.originsclasses
archives_base_name=origins-classes-forge
mod_version=1.1.5
mod_version=1.1.5.1
mod_id=origins_classes
mod_author=LimonBlaze
mc_requirements=[1.18.2,1.19)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ public static void onFoodCrafted(ModifyCraftResultEvent event) {
@SubscribeEvent
public static void onTooltip(ItemTooltipEvent event) {
Player player = event.getPlayer();
if(player == null) return;
ItemStack stack = event.getItemStack();
List<Component> tooltip = event.getToolTip();
if(ClientConfig.CONFIG.showModifyFoodTooltip.get() &&
Expand Down

0 comments on commit 763d4a1

Please sign in to comment.