adjusting to 1.16
This commit is contained in:
1 parent
c22c7b991a
commit
8833d33286
6 files changed
+45
-6
No files matched your search
@@ -70,7 +70,14 @@ public class ValueConversions
|
||||
return ListValue.wrap(nodes);
|
||||
}
|
||||
|
||||
public static Value fromEntityMemory(Entity e, Object v)
|
||||
public static Value fromTimedMemory(Entity e, long expiry, Object v)
|
||||
{
|
||||
Value ret = fromEntityMemory(e, v);
|
||||
if (ret == Value.NULL || expiry == Long.MAX_VALUE) return ret;
|
||||
return ListValue.of(ret, new NumericValue(expiry));
|
||||
}
|
||||
|
||||
private static Value fromEntityMemory(Entity e, Object v)
|
||||
{
|
||||
if (v instanceof GlobalPos)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user