Allow apps to retrieve information about the source (#1229)

* Give information about the sources

* Document source related system_info properties
This commit is contained in:
altrisi authored and GitHub committed 2022-01-08 21:08:26 +01:00
1 parent a8f9b96e9e
commit de305f4284
3 files changed
+32 -9

No files matched your search

@@ -736,6 +736,7 @@ public class Auxiliary {
return Value.TRUE;
});
// Should this be deprecated for system_info('source_dimension')?
expression.addContextFunction("current_dimension", 0, (c, t, lv) ->
ValueConversions.of( ((CarpetContext)c).s.getWorld()));