diff --git a/gradle.properties b/gradle.properties index d7dd8d3..a63a1b6 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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) diff --git a/src/main/java/limonblaze/originsclasses/common/event/PowerEventHandler.java b/src/main/java/limonblaze/originsclasses/common/event/PowerEventHandler.java index 19cee4c..5e6721c 100644 --- a/src/main/java/limonblaze/originsclasses/common/event/PowerEventHandler.java +++ b/src/main/java/limonblaze/originsclasses/common/event/PowerEventHandler.java @@ -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 tooltip = event.getToolTip(); if(ClientConfig.CONFIG.showModifyFoodTooltip.get() &&