Temporary partial fix for insane hunger issue where you can only ever replenish 2.5 hearts at a time
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user