mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2025-02-17 04:41:40 +01: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) {
|
||||
try {
|
||||
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());
|
||||
loaded = true;
|
||||
} catch (Exception e) {
|
||||
|
Loading…
Reference in New Issue
Block a user