Advanced Peripherals

Advanced Peripherals

29M Downloads

Exception on digBlock()

ejzeronimo opened this issue ยท 2 comments

commented

Describe

Seemingly at random digBlock() will error out when called. I haven't been able to reproduce it consistently.

Steps to reproduce

local auto = peripheral.wrap("right") auto.digBlock()

Multiplayer?

Yes

Version

1.19.2-0.7.27r

Minecraft, Forge and maybe other related mods versions

Forge 43.2.11 Minecraft 1.19.2

Screenshots or Videos

image

Crashlog/log

No response

commented

I thought I fixed that, oops

There's a workaround
Running that a second time would fix that issue

commented

I noticed that if I run it a second time it fixes that, but how would I do that without it terminating the script the first time around? I plan on putting this turtle on a never ending mining mission so making sure that there are no terminating errors is big.

EDIT: I forgot about pcall() whoops