Replace deprecated world_time() with system_info('world_time') (#1702)
This commit is contained in:
1 parent
384bd37159
commit
598ec82d02
1 file changed
+2
-2
@@ -59,13 +59,13 @@ global_functions = {
|
||||
|
||||
|
||||
entry = query(e, 'brain', 'last_slept');
|
||||
slept = world_time()-entry;
|
||||
slept = system_info('world_time')-entry;
|
||||
last_slept = format(if(entry == null, 'rb never', if(slept < 24000, 'e ', 'y ')+slept));
|
||||
|
||||
labels = [
|
||||
['golem timer', 'golem:', format(if(last_seen,'rb ','eb ')+last_seen )],
|
||||
['sleep tracker', 'slept:', last_slept],
|
||||
['attempt', 'attempt in:', format(if( slept < 24000 && last_seen==0,'yb ','gi ')+ (100-(world_time()%100)))],
|
||||
['attempt', 'attempt in:', format(if( slept < 24000 && last_seen==0,'yb ','gi ')+ (100-(system_info('world_time')%100)))],
|
||||
];
|
||||
[visuals, abnoxious_visuals, labels];
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user