add easiest assertion ever for obvious script stuff
This commit is contained in:
@@ -146,8 +146,8 @@ public abstract class ScriptVMMixin implements RSClient
|
|||||||
{
|
{
|
||||||
assert isClientThread();
|
assert isClientThread();
|
||||||
assert currentScript == null;
|
assert currentScript == null;
|
||||||
Object[] cargs = new Object[args.length + 1];
|
Object[] cargs = new Object[args.length];
|
||||||
// cargs[0] = id;
|
assert cargs[0] instanceof Integer || cargs[0] instanceof JavaScriptCallback : "The first argument should always be a ScriptID!";
|
||||||
System.arraycopy(args, 0, cargs, 1, args.length);
|
System.arraycopy(args, 0, cargs, 1, args.length);
|
||||||
RSScriptEvent se = createScriptEvent();
|
RSScriptEvent se = createScriptEvent();
|
||||||
se.setArguments(cargs);
|
se.setArguments(cargs);
|
||||||
|
|||||||
Reference in New Issue
Block a user