AgriCraft

AgriCraft

30M Downloads

Computer Controlled Seed Analyszer bad return of getSepciemenStats method

Shotman opened this issue ยท 3 comments

commented

There is a problem in the output of the getSpeciemenStats, maybe I am doing something wrong since I am not really an expert at ComputerCraft but here is my output :
The Code :
ccsaoutput

The Output :
ccsaoutput2

commented

I'm not sure how LUA works, but I'm returning an array of size 3 from that method, and I think you maybe have to do a, b, c = seed.getSpecimenStats() to assign a, b and c to growth, gain and strength respectively, then again, I might be wrong.

commented

a,b,c = seed.getSpeciemenStats()
with
print(a); print(b); print(c);
works, thanks !

commented

Great! For clarity and readability I'd name them growth, gain and strength instead of a, b and c though ;)