RSBridge Returns Item When It Doesn't Have Any, But Is Craftable
beemerwt opened this issue ยท 4 comments
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...
If you take out the pattern it will return nil.
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
- Connect an RS Bridge to a Refined Storage system
- Attach a crafter to the Refined Storage system
- Add any pattern of an item of which you have none stored in your Refined Storage system
- 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
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.