1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2024-06-25 22:53:22 +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 Object[] callMethod( @Nonnull ILuaContext context, int method, @Nonnull O
{
// time
String param = optString( args, 0, "ingame" );
switch( param )
switch( param.toLowerCase( Locale.ROOT ) )
{
case "utc":
{
@ -326,7 +326,7 @@ public Object[] callMethod( @Nonnull ILuaContext context, int method, @Nonnull O
{
// day
String param = optString( args, 0, "ingame" );
switch( param )
switch( param.toLowerCase( Locale.ROOT ) )
{
case "utc":
{
@ -380,7 +380,7 @@ public Object[] callMethod( @Nonnull ILuaContext context, int method, @Nonnull O
{
// epoch
String param = optString( args, 0, "ingame" );
switch( param )
switch( param.toLowerCase( Locale.ROOT ) )
{
case "utc":
{