You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for (FieldvarplayerIDField : VarPlayerID.class.getDeclaredFields())
228
+
{
229
+
try
230
+
{
231
+
// Should be unnecessary to check modifiers since AFAIK VarPlayerID is automatically generated from Jagex and should always contain only public static final ints
232
+
if (varplayerIDField.getType() == int.class && Modifier.isPublic(varplayerIDField.getModifiers()) && Modifier.isStatic(varplayerIDField.getModifiers()) && Modifier.isFinal(varplayerIDField.getModifiers()))
log.error("Failed to get int value of VarPlayerID.{}", varplayerIDField.getName(), e);
244
+
}
245
+
}
246
+
247
+
for (FieldvarbitIDField : VarbitID.class.getDeclaredFields())
248
+
{
249
+
try
250
+
{
251
+
// Should be unnecessary to check modifiers since AFAIK VarbitID is automatically generated from Jagex and should always contain only public static final ints
252
+
if (varbitIDField.getType() == int.class && Modifier.isPublic(varbitIDField.getModifiers()) && Modifier.isStatic(varbitIDField.getModifiers()) && Modifier.isFinal(varbitIDField.getModifiers()))
0 commit comments