Skip to content

Item Exporter predicate function executes more than once per tick#49

Description

@NamelLess-0

Issue type:

  • 馃悰 Bug

Short description:

When using a function from a script as a predicate in Item exporter, the script executes more than 20 times per second and is also much more inconsistent compared to item importer.

Steps to reproduce the problem:

  1. Bind the variable card with this function:
function main(item) {
  call++;
  let time = new Date();
  let timestamp = time.toLocaleTimeString();
  console.log(timestamp, "call:", call);
  return false;
}
  1. Place the variable card in the predicate Item exporter slot that is connected to the target storage and item interface.
  2. Check the logs.

Expected behaviour:

The execution frequency is no higher than 20 times per second, or the same as for the Item importer.


Versions:

  • This mod: 1.0.14
  • Minecraft: 1.20.1
  • Mod loader version: Forge 47.4.6

Log file:

stdout log: https://pastebin.com/sQfVRviL

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions