mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Don't perform adjustments on empty food components. squeek502/AppleSkin#331
This commit is contained in:
parent
ae4a09ad28
commit
4c593efb32
1 changed files with 1 additions and 1 deletions
|
@ -35,7 +35,7 @@ public class TransientComponentMap {
|
|||
return originalFood;
|
||||
}
|
||||
|
||||
if (originalFood != null) {
|
||||
if (originalFood != null && (originalFood.nutrition() > 0 || originalFood.saturation() > 0)) {
|
||||
return diet.getAdjustedFoodComponent(s, originalFood);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue