Skip to content

0.8.0a RS Bridge: Exception thrown on empty filter in getPatterns / getCraftableItems #830

Description

@imevul

Describe

Not "own compiled build", but 0.8.0a is included in latest ATM10 (8.1). Figured that was the closest option though.

Issue

In 0.8.0a, using getPatterns() or getCraftableItems() without a filter throws an exception:
java.lang.IllegalStateException: Value must be positive: 0

And an empty filter {} returns nil with error "NO_FILTER"

Expected behavior

Does not throw an exception, and returns all patterns or all craftable items.

(Also, your link in CONTRIBUTING.md to the guidelines for reporting issues is broken.)

Steps to reproduce

  1. lua
  2. rs = peripheral.find('rs_bridge')
  3. rs.getPatterns()

Multiplayer?

Yes

Version

Own compiled build.

Minecraft, Forge and maybe other related mods versions

neoforge-21.1.249 - Minecraft 1.21.1 - ATM10 8.1

Screenshots or Videos

https://imgur.com/a/brAVDi6

Crashlog/log

https://gist.github.com/imevul/4f696ee85306f67f6c8ebd029e0ae3b5

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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions