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