mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 00:37:55 +00:00
[BUGFIX] Solved issue with IllegalArgumentException
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
package org.parabot.environment.randoms;
|
||||
|
||||
import com.sun.javaws.exceptions.InvalidArgumentException;
|
||||
import org.parabot.core.Core;
|
||||
import org.parabot.core.parsers.randoms.RandomParser;
|
||||
import org.parabot.core.ui.Logger;
|
||||
@@ -53,7 +52,7 @@ public class RandomHandler {
|
||||
*/
|
||||
@Deprecated
|
||||
public void addRandom(org.parabot.environment.scripts.randoms.Random random) {
|
||||
new InvalidArgumentException(new String[]{"This type of random is deprecated"}).printStackTrace();
|
||||
new IllegalArgumentException("This type of random is deprecated").printStackTrace();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -126,7 +125,7 @@ public class RandomHandler {
|
||||
*/
|
||||
@Deprecated
|
||||
public boolean checkAndRun() {
|
||||
new InvalidArgumentException(new String[]{"This method is deprecated"}).printStackTrace();
|
||||
new IllegalArgumentException("This method is deprecated").printStackTrace();
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user