Skip to content
This repository has been archived by the owner on May 27, 2024. It is now read-only.

Commit

Permalink
fix: burp sound missing from custom-food
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed Jan 19, 2024
1 parent 65b71d8 commit f64b264
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package com.mineinabyss.looty.features.food

import com.mineinabyss.geary.papermc.tracking.items.inventory.toGeary
import org.bukkit.GameMode
import org.bukkit.Sound
import org.bukkit.event.EventHandler
import org.bukkit.event.Listener
import org.bukkit.event.player.PlayerItemConsumeEvent
Expand Down Expand Up @@ -29,6 +30,7 @@ class FoodConsumptionListener : Listener {
}

isCancelled = true
player.playSound(player.location, Sound.ENTITY_PLAYER_BURP, 1f, 1f)
player.foodLevel += minOf(gearyFood.hunger, 20)
player.saturation += minOf(gearyFood.saturation, 20.0).toFloat()
}
Expand Down

0 comments on commit f64b264

Please sign in to comment.