From 5761616ec2326505ff14730d4c7e18378bb5631b Mon Sep 17 00:00:00 2001 From: Lizbeth Rika Date: Sat, 14 Feb 2015 19:14:57 +0000 Subject: [PATCH] Check if the cache isn't broken somehow. --- .../java/vazkii/botania/api/corporea/CorporeaHelper.java | 7 +++++-- src/main/java/vazkii/botania/client/fx/FXSparkle.java | 5 ++--- src/main/java/vazkii/botania/client/fx/FXWisp.java | 5 ++--- 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/src/main/java/vazkii/botania/api/corporea/CorporeaHelper.java b/src/main/java/vazkii/botania/api/corporea/CorporeaHelper.java index 813f84967..e549dbe64 100644 --- a/src/main/java/vazkii/botania/api/corporea/CorporeaHelper.java +++ b/src/main/java/vazkii/botania/api/corporea/CorporeaHelper.java @@ -34,8 +34,11 @@ public final class CorporeaHelper { return empty; List network = master.getConnections(); - if(cachedNetworks.containsKey(network)) - return cachedNetworks.get(network); + if(cachedNetworks.containsKey(network)) { + List cache = cachedNetworks.get(network); + if(cache != null) + return cache; + } List inventories = new ArrayList(); if(network != null) diff --git a/src/main/java/vazkii/botania/client/fx/FXSparkle.java b/src/main/java/vazkii/botania/client/fx/FXSparkle.java index 6e66fa013..61a563631 100644 --- a/src/main/java/vazkii/botania/client/fx/FXSparkle.java +++ b/src/main/java/vazkii/botania/client/fx/FXSparkle.java @@ -3,9 +3,8 @@ * part of the Botania Mod. Get the Source Code in github: * https://github.com/Vazkii/Botania * - * Botania is Open Source and distributed under a - * Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License - * (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB) + * Botania is Open Source and distributed under the + * Botania License: http://botaniamod.net/license.php * * File Created @ [? (GMT)] */ diff --git a/src/main/java/vazkii/botania/client/fx/FXWisp.java b/src/main/java/vazkii/botania/client/fx/FXWisp.java index 47c0245c0..05ad91c98 100644 --- a/src/main/java/vazkii/botania/client/fx/FXWisp.java +++ b/src/main/java/vazkii/botania/client/fx/FXWisp.java @@ -3,9 +3,8 @@ * part of the Botania Mod. Get the Source Code in github: * https://github.com/Vazkii/Botania * - * Botania is Open Source and distributed under a - * Creative Commons Attribution-NonCommercial-ShareAlike 3.0 License - * (http://creativecommons.org/licenses/by-nc-sa/3.0/deed.en_GB) + * Botania is Open Source and distributed under the + * Botania License: http://botaniamod.net/license.php * * File Created @ [? (GMT)] */