mirror of
https://github.com/GTNewHorizons/MagicBees.git
synced 2026-11-12 08:17:29 +00:00
Moved postInit block/item queries for mods to init to try avoiding bee mutation NPEs.
This commit is contained in:
1 parent
e14bbe254a
commit
54faf63bab
6 files changed
+29
-47
No files matched your search
@@ -301,8 +301,6 @@ public class BeeMutation implements IBeeMutation
|
||||
private MoonPhase moonPhaseStart;
|
||||
private MoonPhase moonPhaseEnd;
|
||||
private float moonPhaseMutationBonus;
|
||||
private boolean nodeRequired;
|
||||
private double nodeRange;
|
||||
private boolean requiresBlock;
|
||||
private Block requiredBlock;
|
||||
private int requiredBlockMeta;
|
||||
@@ -500,13 +498,13 @@ public class BeeMutation implements IBeeMutation
|
||||
}
|
||||
else
|
||||
{
|
||||
int meta = 0;
|
||||
int meta = OreDictionary.WILDCARD_VALUE;
|
||||
if (this.requiredBlockMeta != OreDictionary.WILDCARD_VALUE)
|
||||
{
|
||||
meta = this.requiredBlockMeta;
|
||||
}
|
||||
conditions.add(String.format(LocalizationManager.getLocalizedString("research.requiresBlock"),
|
||||
new ItemStack(this.requiredBlock, 1, this.requiredBlockMeta).getDisplayName()));
|
||||
new ItemStack(this.requiredBlock, 1, meta).getDisplayName()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user