Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Miner] Invalid Side #21

Open
hasezoey opened this issue Sep 1, 2018 · 1 comment
Open

[Miner] Invalid Side #21

hasezoey opened this issue Sep 1, 2018 · 1 comment

Comments

@hasezoey
Copy link

hasezoey commented Sep 1, 2018

invalid side:
stack traceback:
	[C]: in function 'error'
	machine:986: in function <machine:983>
	(...tail calls...)
	/home/miner.lua:564: in upvalue 'digVein'
	/home/miner.lua:583: in upvalue 'digVeins'
	/home/miner.lua:598: in upvalue 'dig1x2'
	/home/miner.lua:678: in upvalue 'digShafts'
	/home/miner.lua:761: in local 'main'
	/home/miner.lua:817: in main chunk
	(...tail calls...)
	[C]: in function 'xpcall'
	machine:751: in global 'xpcall'
	/lib/process.lua:63: in function </lib/process.lua:59>

started with miner 30 3 2> out (for error logging, otherwise miner 30 3)

Minecraft 1.12.2
OpenComputers 1.7.2.67
Using Lua 5.3

@Connor14
Copy link

Connor14 commented Sep 12, 2018

@hasezoey I also ran into this issue. It turns out it was the FOR loop in the digVein function.

Replace for _, side in ipairs(sides) do with for sideIndex = 0,5 do and replace side = sides[side] with side = sideIndex

Here is a pastebin of the whole program: https://pastebin.com/5M4Yc7Tp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants