Likewise, turtle.getFuelLimit() would also return math.huge. This would pretty much remove the need for checks against the current return, "unlimited", as the common check of "if turtle.getFuelLevel() == 0 then" would return false, but also "< 1" or "< someOtherNumber" wouldn't fail with a string comparison error.
0
Shouldn't turtle.getFuelLevel() return math.huge (infinity) when fuel is disabled?
Started by Kingdaro, Apr 05 2014 09:10 PM
4 replies to this topic
#1
Posted 05 April 2014 - 09:10 PM
#2
Posted 06 April 2014 - 12:21 AM
Sounds like it'd simplify things for future code, while retaining near full backwards compatibility with older code. Hmm.
#3
Posted 06 April 2014 - 12:26 AM
Bomb Bloke, on 06 April 2014 - 12:21 AM, said:
while retaining near full backwards compatibility with older code.
#4
Posted 06 April 2014 - 01:34 AM
I am scratching my head over those alterations. Granted, they're the better way of doing things, but they resolve what seems to be a very minor issue (to me).
However, 1.6 also has the potential to break old Rednet implementations, and can play havoc with scripts that implement turtle fuelling. I guess Dan thought if scripts were going to need changes anyway to cope with those, he may as well "fix" term while he was at it. Better to break a lot of things in one go then to spread 'em out over a number of updates.
However, 1.6 also has the potential to break old Rednet implementations, and can play havoc with scripts that implement turtle fuelling. I guess Dan thought if scripts were going to need changes anyway to cope with those, he may as well "fix" term while he was at it. Better to break a lot of things in one go then to spread 'em out over a number of updates.
#5
Posted 07 April 2014 - 03:56 PM
Bomb Bloke, on 06 April 2014 - 01:34 AM, said:
I am scratching my head over those alterations. Granted, they're the better way of doing things, but they resolve what seems to be a very minor issue (to me).
However, 1.6 also has the potential to break old Rednet implementations, and can play havoc with scripts that implement turtle fuelling. I guess Dan thought if scripts were going to need changes anyway to cope with those, he may as well "fix" term while he was at it. Better to break a lot of things in one go then to spread 'em out over a number of updates.
However, 1.6 also has the potential to break old Rednet implementations, and can play havoc with scripts that implement turtle fuelling. I guess Dan thought if scripts were going to need changes anyway to cope with those, he may as well "fix" term while he was at it. Better to break a lot of things in one go then to spread 'em out over a number of updates.
Just like Mojang
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users