diff --git a/pack/config/hungerstrike-common.toml b/pack/config/hungerstrike-common.toml index ee8bf2f..9fbd1c4 100644 --- a/pack/config/hungerstrike-common.toml +++ b/pack/config/hungerstrike-common.toml @@ -9,7 +9,7 @@ mode = "ALL" #How to translate food points into heart points when consuming food. #At the default value of 0.5, food fills your heart bar at half the rate it would fill hunger. - foodHealFactor = 0.5 + foodHealFactor = 0.0 #Globally overrides the maximum stack size of food items. #This property affects all Vanilla and Mod food items that derive from ItemFood. #Set to -1 to retain the default stack size of each food item. Note: This will affect the entire server, not just players on hunger strike. diff --git a/pack/kubejs/client_scripts/food.js b/pack/kubejs/client_scripts/food.js index dd0dd65..ea66ba9 100644 --- a/pack/kubejs/client_scripts/food.js +++ b/pack/kubejs/client_scripts/food.js @@ -4,7 +4,7 @@ const MobEffectInstance = Java.loadClass('net.minecraft.world.effect.MobEffectIn console.log('Loaded tooltips') const nutritionTooltip = (item, lines) => { - let healing = item.foodProperties.getNutrition() / 2 + let healing = item.foodProperties.getNutrition() if(healing == 0) { return diff --git a/pack/kubejs/startup_scripts/food.js b/pack/kubejs/startup_scripts/food.js index 11fc2d2..3ec5742 100644 --- a/pack/kubejs/startup_scripts/food.js +++ b/pack/kubejs/startup_scripts/food.js @@ -4,7 +4,7 @@ ItemEvents.modification(event => { event.modify(Object.keys(data), item => { item.foodProperties = food => { let dataEntry = data[item.arch$registryName().toString()] - food.hunger(dataEntry.heal * 2) + food.hunger(dataEntry.heal) for(let effectDef of dataEntry.effects) { switch(effectDef.type) {