From 2e90e2e34514af9567d1c6a4139675cfaaf14cde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luca=20S=C3=B6the?= Date: Sat, 7 Apr 2018 21:52:39 +0200 Subject: [PATCH] Make the arguments of os.epoch case-insensitive --- src/main/java/dan200/computercraft/core/apis/OSAPI.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/dan200/computercraft/core/apis/OSAPI.java b/src/main/java/dan200/computercraft/core/apis/OSAPI.java index 7ec4b6878c..bec16b9862 100644 --- a/src/main/java/dan200/computercraft/core/apis/OSAPI.java +++ b/src/main/java/dan200/computercraft/core/apis/OSAPI.java @@ -385,7 +385,7 @@ public Object[] callMethod( @Nonnull ILuaContext context, int method, @Nonnull O { // epoch String param = optString( args, 0, "ingame" ); - switch( param ) + switch( param.toLowerCase() ) { case "utc": {