mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-11-24 11:45:31 +01:00
Simplified code, no need for internal variable.
This commit is contained in:
parent
3f35afc76a
commit
e4fbc6fab1
@ -58,11 +58,8 @@ public class AddonClassLoader extends URLClassLoader {
|
|||||||
throw new InvalidAddonInheritException("Main class doesn't not extends super class 'Addon'");
|
throw new InvalidAddonInheritException("Main class doesn't not extends super class 'Addon'");
|
||||||
}
|
}
|
||||||
|
|
||||||
Addon addon = addonClass.newInstance();
|
this.addon = addonClass.newInstance();
|
||||||
|
|
||||||
addon.setDescription(this.asDescription(data));
|
addon.setDescription(this.asDescription(data));
|
||||||
|
|
||||||
this.addon = addon;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private AddonDescription asDescription(Map<String, String> data){
|
private AddonDescription asDescription(Map<String, String> data){
|
||||||
|
Loading…
Reference in New Issue
Block a user