OpenMods / OpenPeripheral

https://openmods.info
MIT License
67 stars 25 forks source link

Furnace doesn't work as peripheral after smelting #198

Closed ParapetCloud closed 9 years ago

ParapetCloud commented 10 years ago

in the lua interpreter I wrote furnace = peripheral.wrap("top") furnace.getAllStacks() and it gave me all the info. I then smelted something and tried furnace.getAllStacks() again and it returned nil. I tried re-wrapping and it still returned nil. I tried furnace.getInventoryName() and it returned nil. I tried furnace.isBurning() and it returned nil OpenPeripheralCore Version 0.41 OpenPeripheralAddons Version 0.1.5

boq commented 10 years ago

Please update with exact version info. Also, is furnace attached through proxy, modem or directly?

ParapetCloud commented 10 years ago

Direct connection. I'm confused on what you mean by exact version info.

boq commented 10 years ago

mod version, if official release or exact file name, if snapshot.

ParapetCloud commented 10 years ago

OpenPeripheralCore Version 0.41 OpenPeripheralAddons Version 0.1.5 Computer craft Version 1.63

boq commented 9 years ago

Looks like it's caused by very "special" way of handling furnaces by vanilla (BlockFurnace.updateFurnaceBlockState). OpenPeripheral can't do anything at this point - we are just wrapping what ComputerCraft is giving to us.

nevercast commented 9 years ago

Just so there is a "Fix" for anyone searching issues. Use a modem, for some reason the logic for a modem on a furnace is different to a direct connection in ComputerCraft.