mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-11 23:04:52 +09:00
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:
1 parent
dd8f9dbfd5
commit
6c11cefb99
1 file changed
-8
@@ -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)]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user