1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-01-15 19:55:42 +00:00

os.time() and os.day() join the "Finally Case-Insensitive Party"

This commit is contained in:
Luca 2018-04-07 22:29:34 +02:00 committed by SquidDev
parent 5b942ff9c1
commit 07b9b1c9c7

View File

@ -298,7 +298,7 @@ public class OSAPI implements ILuaAPI
{ {
// time // time
String param = optString( args, 0, "ingame" ); String param = optString( args, 0, "ingame" );
switch( param ) switch( param.toLowerCase( Locale.ROOT ) )
{ {
case "utc": case "utc":
{ {
@ -326,7 +326,7 @@ public class OSAPI implements ILuaAPI
{ {
// day // day
String param = optString( args, 0, "ingame" ); String param = optString( args, 0, "ingame" );
switch( param ) switch( param.toLowerCase( Locale.ROOT ) )
{ {
case "utc": case "utc":
{ {
@ -380,7 +380,7 @@ public class OSAPI implements ILuaAPI
{ {
// epoch // epoch
String param = optString( args, 0, "ingame" ); String param = optString( args, 0, "ingame" );
switch( param ) switch( param.toLowerCase( Locale.ROOT ) )
{ {
case "utc": case "utc":
{ {