Skip to content

Commit

Permalink
Merge branch 'zeta120' of https://github.com/VazkiiMods/Quark into ze…
Browse files Browse the repository at this point in the history
…ta120
  • Loading branch information
MehVahdJukaar committed Jan 3, 2024
2 parents 7ba0546 + 97ba8d1 commit cef4998
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public FeedResult tryFeedingAnimal(Animal animal) {
if(animal.isFood(stack)) {
SoundEvent soundEvent = animal.getEatingSound(stack);
// Try and catch this in case soundEvent is null somewhere (Its cleaner then null checking soundEvent
// after warping it
// after warping it)
try {
animal.playSound(soundEvent, 0.5F + 0.5F * level.random.nextInt(2), (level.random.nextFloat() - level.random.nextFloat()) * 0.2F + 1.0F);
} catch (NullPointerException ignored) {}
Expand Down

0 comments on commit cef4998

Please sign in to comment.