"Mining" a static dispenser like car wrecks works without issue for the first time, but after a while, players are able to mine way more material from a previously mined dispenser than allowed in the configuration file.
I deleted the data file (oxide/data/StaticDispensers_data.json) yesterday for a test after noticing near endless mining on sedans, went to a Oxums Gas Station Spermket and mined the two sedan wrecks in front of it. Both stopped giving metal frags after 300 frags were mined.
Relevant part of the configuration file:
{
"PrefabFilter": "sedan_",
"Contents": [
{
"GatherChance": 100,
"GatherAmount": 7,
"ZLevelsGatherSkill": 1,
"ShortName": "metal.fragments",
"CustomName": null,
"SkinId": 0,
"Amount": 300
}
],
"WhitelistedHeldItems": [
"rock",
"pickaxe",
"hammer.salvaged",
"icepick.salvaged",
"stone.pickaxe",
"jackhammer"
]
},
This is how the data file looked right now. Showing only the sedans, same happens with other static dispensers too. (Server restarted almost 12 hours ago):
{
"Name": "sedan_a_yellow",
"Position": {
"x": -460.9391,
"y": 46.491787,
"z": -525.4074
},
"Contents": [
{
"ShortName": "metal.fragments",
"CustomName": null,
"SkinId": 0,
"Amount": 2244
}
]
},
{
"Name": "sedan_a_wrecked",
"Position": {
"x": -451.102,
"y": 46.6407852,
"z": -517.463745
},
"Contents": [
{
"ShortName": "metal.fragments",
"CustomName": null,
"SkinId": 0,
"Amount": 1800
}
]
},
This gets progressively worse the longer the server is running, not entirely sure if it is happening through restarts or just over time in general. The attached screenshot was taken while mining one of those 2 sedans, receiving way too much material.
Deleting the data file solves the issue temporarily.
Happy to provide any needed additional information to help you track down this issue.