Skip to content

Commit abd80d3

Browse files
committed
Make the arguments of os.epoch case-insensitive
1 parent 914df8b commit abd80d3

File tree

1 file changed

+1
-1
lines changed
  • src/main/java/dan200/computercraft/core/apis

1 file changed

+1
-1
lines changed

src/main/java/dan200/computercraft/core/apis/OSAPI.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ public Object[] callMethod( @Nonnull ILuaContext context, int method, @Nonnull O
385385
{
386386
// epoch
387387
String param = optString( args, 0, "ingame" );
388-
switch( param )
388+
switch( param.toLowerCase() )
389389
{
390390
case "utc":
391391
{

0 commit comments

Comments
 (0)