mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-17 10:55:17 +00:00
Add a failsafe for Wiki lookup in case some mod is dumb.
This commit is contained in:
1 parent
ab0e30f762
commit
4ea90affc6
1 file changed
+1
-1
@@ -25,7 +25,7 @@ public class WikiHooks {
|
||||
|
||||
public static IWikiProvider getWikiFor(Block block) {
|
||||
UniqueIdentifier mod = GameRegistry.findUniqueIdentifierFor(block);
|
||||
return getWikiFor(mod.modId.toLowerCase());
|
||||
return getWikiFor(mod == null ? "" : mod.modId.toLowerCase());
|
||||
}
|
||||
|
||||
public static IWikiProvider getWikiFor(String mod) {
|
||||
|
||||
Reference in new issue
Block a user