Remove resource count limiting

Remove the limiting of the resource counts sent to the subspace_storage
mod as this has been implemented on the mod side with version 1.99.6.
This commit is contained in:
Hornwitser committed 2020-12-06 17:09:46 +01:00
1 parent dd8f9dbfd5
commit 6c11cefb99
1 file changed
-8
-8
View File
@@ -73,14 +73,6 @@ class InstancePlugin extends libPlugin.BaseInstancePlugin {
async updateStorageEventHandler(message, event) {
let items = message.data.items;
// XXX this should be done on the lua side
// Ensure counts don't overflow
for (let item of items) {
if (item[1] > 0x7fffffff) {
item[1] = 0x7fffffff;
}
}
// XXX this should be moved to instance/clusterio api
items.push(["signal-unixtime", Math.floor(Date.now()/1000)]);