Merge pull request #473 from TehNut/patch-1
Fix potential issue with reloading configs
This commit is contained in:
commit
0764dd7be8
1 changed files with 5 additions and 0 deletions
|
@ -365,6 +365,11 @@ public class BloodMagicConfiguration
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void buildTeleposerBlacklist() {
|
private static void buildTeleposerBlacklist() {
|
||||||
|
|
||||||
|
// Make sure it's empty before setting the blacklist.
|
||||||
|
// Otherwise, reloading the config while in-game will duplicate the list.
|
||||||
|
AlchemicalWizardryEventHooks.teleposerBlacklist.clear();
|
||||||
|
|
||||||
for (String blockSet : BloodMagicConfiguration.teleposerBlacklist) {
|
for (String blockSet : BloodMagicConfiguration.teleposerBlacklist) {
|
||||||
String[] blockData = blockSet.split(":");
|
String[] blockData = blockSet.split(":");
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue