Files
Bubberstation/code/modules/hydroponics
SkyratBot a8994478cd [MIRROR] Watering hydroponic trays can no longer add more water than the container has. [MDB IGNORE] (#23436)
* Watering hydroponic trays can no longer add more water than the container has. (#78005)

## About The Pull Request

What it says on the tin. Previously it would not check whether the
amount set to transfer was greater than the amount contained, and so you
could have a gardening can with 10u of water fill the tray with 100u if
you set it to that.

Also, I removed a (seemingly) pointless part of the check in line 885.
All it achieves as far as I can tell is that if you have decimal (less
than 1) amounts of water in a container, it will be incorrectly added to
the nutrient count rather than the water count.
## Why It's Good For The Game
## Changelog
🆑
fix: containers can no longer add more water to hydroponic trays than
they actually contain.
fix: watering a hydroponic tray with amounts of water lesser than 1 will
no longer be added to nutrients rather than water
/🆑

* Watering hydroponic trays can no longer add more water than the container has.

---------

Co-authored-by: A miscellaneous Fern <80640114+FernandoJ8@users.noreply.github.com>
2023-08-31 14:26:08 -07:00
..