mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 00:37:55 +00:00
Fixed HookFile class...
This commit is contained in:
@@ -24,13 +24,13 @@ public class HookFile {
|
||||
public HookFile(URL url, int type) {
|
||||
setType(type);
|
||||
this.url = url;
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
private void setType(int type) {
|
||||
if(type < 0 || type > 1) {
|
||||
throw new IllegalArgumentException("This type does not exist");
|
||||
}
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public InputStream getInputStream() {
|
||||
|
||||
Reference in New Issue
Block a user