scarpet thread safe pt1
This commit is contained in:
1 parent
54308bb131
commit
8c95aab2c6
4 files changed
+77
-6
No files matched your search
@@ -273,6 +273,22 @@ public class EntityValue extends Value
|
||||
}
|
||||
return Value.NULL;
|
||||
});
|
||||
|
||||
put("permission_level", (e, a) -> {
|
||||
if (e instanceof ServerPlayerEntity)
|
||||
{
|
||||
ServerPlayerEntity spe = (ServerPlayerEntity) e;
|
||||
for (int i=4; i>=0; i--)
|
||||
{
|
||||
if (spe.allowsPermissionLevel(i))
|
||||
return new NumericValue(i);
|
||||
|
||||
}
|
||||
return new NumericValue(0);
|
||||
}
|
||||
return Value.NULL;
|
||||
});
|
||||
|
||||
//spectating_entity
|
||||
// isGlowing
|
||||
put("effect", (e, a) ->
|
||||
|
||||
Reference in new issue
Block a user