mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-12-06 11:17:20 +00:00
Fixed HookFile class...
This commit is contained in:
1 parent
50084c5ef9
commit
59ab345b32
1 file changed
+1
-1
@@ -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