[MIRROR] [NO GBP]Mat container Final clean-up & patches [MDB IGNORE] (#22765)

* [NO GBP]Mat container Final clean-up & patches (#77092)

## About The Pull Request
1. Fixes #77177
Some things were not connecting to the ore silo round start because the
silo was not initialized yet so it went to local storage. Now it
connects with the ore silo again
3. Removed some unused code in remote materials
4. Protolathe uses `eject_sheets()` defined in remote materials and not
it's own version because that's redundant
5. Don't put the item back in the players hand when inserting it in the
material container cause we haven't even removed it yet
6. `fast_split()` is now even faster & robust and is a global proc
7. Some code cleanup for RHD silo link

## Changelog
🆑
fix: some things not connecting to the ore silo round start
/🆑

* [NO GBP]Mat container Final clean-up & patches

---------

Co-authored-by: SyncIt21 <110812394+SyncIt21@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-07-29 15:59:35 -04:00
committed by GitHub
co-authored by SyncIt21
parent 0532392092
commit 6ccbd41fdc
7 changed files with 44 additions and 73 deletions
@@ -148,10 +148,6 @@
if ("remove_mat")
var/datum/material/material = locate(params["ref"])
var/amount = text2num(params["amount"])
if (!amount)
return TRUE
// SAFETY: eject_sheets checks for valid mats
materials.eject_sheets(material, amount)
@@ -393,10 +389,6 @@
if ("remove_mat")
var/datum/material/material = locate(params["ref"])
var/amount = text2num(params["amount"])
if (!amount)
return TRUE
// SAFETY: eject_sheets checks for valid mats
materials.eject_sheets(material, amount)