Buuz135 / FunctionalStorage

FunctionalStorage
MIT License
30 stars 32 forks source link

Check Fluid Stack Before Setting Amount #219

Closed ChampionAsh5357 closed 11 months ago

ChampionAsh5357 commented 11 months ago

Closes #213

When applying the creative upgrade, the fluid drawer attempts to set the amount of the fluid to its max value. However, since there isn't an initial check to see whether a fluid is even present, an error is thrown trying to set the data for an empty fluid. This provides an initial check to make sure the fluid isn't empty before setting the max value. Once the fluid is added, it will be set to its creative value equivalent.