Advanced Peripherals

Advanced Peripherals

29M Downloads

RSBridge Returns Item When It Doesn't Have Any, But Is Craftable

beemerwt opened this issue ยท 4 comments

commented

Descripe

When using an RS Bridge, calling "getItem" for an item that isn't in the system will return with { amount: 1 } if a pattern exists to craft the item. See the images below...
bug1
bug2

If you take out the pattern it will return nil.
bug3
bug4

It should either return nil or the item with "{ amount: 0 }" because you don't actually have the item. If you wanted to know whether or not you had a pattern for the item you should just call "getPattern" for it.

Steps to reproduce

  1. Connect an RS Bridge to a Refined Storage system
  2. Attach a crafter to the Refined Storage system
  3. Add any pattern of an item of which you have none stored in your Refined Storage system
  4. Call "getItem" on your RS Bridge for that item

It returns the item with amount of 1, when it should return nil.
If you wanted to know if you had the pattern for that item, you would call "getPattern"

Multiplayer?

Yes

Version

1.16.5-0.7.6r

Minecraft, Forge and maybe other related mods versions

Valhelsia 3 3.4.9

Screenshots or Videos

No response

Crashlog/log

No response

commented

So
The thing with the amount is currently not possible with the RS api
But I added isCraftable to the items.
advancedperipherals-1.16.5-0.7.7.1r.zip
You can test it if you want, only uploading it to the server would be enough.
Unzip the file before using.

commented

image

commented

Added isCraftable for 1.16 in 0.7.8r
Will be added soon for 1.18

commented

Fixed in 1.18.2-0.7.16b