Advanced Peripherals

Advanced Peripherals

29M Downloads

RsBridge isItemCrafting is false when no item in the system

Joshi425 opened this issue ยท 0 comments

commented

Describe

while using the rsbridge I found out that the isItemCrafing function is not returning true when the item that is being crafted doesn't exist in the system. As soon as 1 exists in the systems it works as intended.

in Advanced Peripherals Version 0.7.35b in atm9 0.2.36
I can't select this version in versions below

Steps to reproduce

have a system with a pattern for raw iron -> iron ingot
run this code:

bridge = peripheral.find("rsBridge")

while true do
    for _, item in pairs(bridge.listCraftableItems()) do
            if item.name == "minecraft:iron_ingot" then
            print(item.name .. " Crafting: ".. tostring(bridge.isItemCrafting(item)))
        end
    end
end

have no iron ingot in the system and craft 1. Crafting stays false.

Multiplayer?

No

Version

1.20.1-0.7.32b (Latest 1.20.1)

Minecraft, Forge and maybe other related mods versions

Forge 47.2.19 Minecraft 1.20.1

Screenshots or Videos

No response

Crashlog/log

No response