sandalle / minecraft_bigreactor_control

Minecraft BigReactor Computercraft Control Program
MIT License
76 stars 41 forks source link

Code always runs as if in CraftOS 1.6/1.7 #78

Open evan1026 opened 8 years ago

evan1026 commented 8 years ago

On line 168 improper syntax is used causing "CraftOS 1.7" to be evaluated as a boolean rather than comparing it against ccVersion. As a result, the code will always call term.redirect(term.native()) regardless of the version.

Should be changed from:

if ccVersion == "CraftOS 1.6" or "CraftOS 1.7" then

to:

if ccVersion == "CraftOS 1.6" or ccVersion == "CraftOS 1.7" then