mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-10-03 09:07:33 +02:00
Added defensive code.
https://github.com/BentoBoxWorld/BentoBox/issues/868
This commit is contained in:
parent
ff91255a6a
commit
998d5390d1
@ -188,7 +188,7 @@ public class BlueprintsManager {
|
|||||||
for (File file : bundles) {
|
for (File file : bundles) {
|
||||||
try {
|
try {
|
||||||
BlueprintBundle bb = gson.fromJson(new FileReader(file), BlueprintBundle.class);
|
BlueprintBundle bb = gson.fromJson(new FileReader(file), BlueprintBundle.class);
|
||||||
blueprintBundles.get(addon).add(bb);
|
blueprintBundles.putIfAbsent(addon, new ArrayList<>()).add(bb);
|
||||||
plugin.log("Loaded Blueprint Bundle '" + bb.getUniqueId() + FOR + addon.getDescription().getName());
|
plugin.log("Loaded Blueprint Bundle '" + bb.getUniqueId() + FOR + addon.getDescription().getName());
|
||||||
loaded = true;
|
loaded = true;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user