mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-08-03 02:56:53 -04:00
Updated NonStandardLuaLibs (markdown)
parent
f2029dc01f
commit
151a102459
@ -63,7 +63,7 @@ The [original functions](http://www.lua.org/manual/5.2/manual.html#6.9) from the
|
||||
- `os.rename` is an alias for `filesystem.rename`.
|
||||
- `os.setlocale` is *not* available.
|
||||
- `os.time` has been reimplemented to return the ingame time since the world has been created.
|
||||
Note that this time in in "in-game seconds". To get the number of game ticks since the world was created, multiply it with `1000/60/60` (since there are 24000 ticks in a day) and subtract 6000. This offset of 6000 is not arbitrary, it ensures that 6 o'clock AM is actually that. Minecraft somehow thinks six o'clock in the morning is zero - probably because that's "when" a new game starts...
|
||||
Note that this time is in "in-game seconds". To get the number of game ticks since the world was created, multiply it with `1000/60/60` (since there are 24000 ticks in a day) and subtract 6000. This offset of 6000 is not arbitrary, it ensures that 6 o'clock AM is actually that. Minecraft somehow thinks six o'clock in the morning is zero - probably because that's "when" a new game starts...
|
||||
- `os.tmpname` has been reimplemented to generate an unused name in the `/tmp` mount.
|
||||
|
||||
Some new functions that kind of fall into this category are available in [[the computer API|API/Computer]].
|
||||
|
Loading…
x
Reference in New Issue
Block a user