Fix 1.21.5 - 1.21.11 saturationRatio (#75)
* Fix food saturation for 1.21.4 - 1.21.11
* Revert "Merge branch 'PrismarineJS:main' into main"
This reverts commit ce5b588c750b250777805ca2953cf2aa08a52556, reversing
changes made to 52505caf9a147d6a89e38b7fad14cf02885e74ca.
* Revert "Fix food saturation for 1.21.4 - 1.21.11 (#73)"
This reverts commit 80ce09d3a9.
* Reapply "Fix food saturation for 1.21.4 - 1.21.11 (#73)"
This reverts commit 01a2e1ce83522eccfcf0cde418fe24dfe3e6dc0f.
* Reapply "Merge branch 'PrismarineJS:main' into main"
This reverts commit 7a829644230f0f5d4f0d2586160f4d48f3af66f8.
* Fix 1.21.5 - 1.21.11 saturationRatio
This commit is contained in:
+1
-1
@@ -25,8 +25,8 @@ public class FoodsDataGenerator implements IDataGenerator {
|
||||
|
||||
FoodProperties foodComponent = Objects.requireNonNull(foodItem.components().get(DataComponents.FOOD));
|
||||
float foodPoints = foodComponent.nutrition();
|
||||
float saturationRatio = foodComponent.saturation() * 2.0F;
|
||||
float saturation = foodComponent.saturation();
|
||||
float saturationRatio = saturation / foodPoints;
|
||||
|
||||
foodDesc.addProperty("foodPoints", foodPoints);
|
||||
foodDesc.addProperty("saturation", saturation);
|
||||
|
||||
Reference in New Issue
Block a user