Fixed the crafting issue - it was fairly silly, actually

This commit is contained in:
Aidan C. Brady committed 2015-03-21 00:50:19 -05:00
1 parent 3305581373
commit a31449c2d3
4 files changed
+30 -19

No files matched your search

+21 -13
View File
@@ -541,19 +541,9 @@ public class CommonProxy
{
return (File)FMLInjectionData.data()[6];
}
public void onConfigSync()
public void updateConfigRecipes()
{
if(general.cardboardSpawners)
{
MekanismAPI.removeBoxBlacklist(Blocks.mob_spawner, 0);
}
else {
MekanismAPI.addBoxBlacklist(Blocks.mob_spawner, 0);
}
MachineType.updateAllUsages();
for(MachineType type : MachineType.getValidMachines())
{
if(machines.isEnabled(type))
@@ -565,8 +555,26 @@ public class CommonProxy
CraftingManager.getInstance().getRecipeList().removeAll(type.getRecipes());
}
}
}
Mekanism.logger.info("Received config from server.");
public void onConfigSync(boolean fromPacket)
{
if(general.cardboardSpawners)
{
MekanismAPI.removeBoxBlacklist(Blocks.mob_spawner, 0);
}
else {
MekanismAPI.addBoxBlacklist(Blocks.mob_spawner, 0);
}
MachineType.updateAllUsages();
updateConfigRecipes();
if(fromPacket)
{
Mekanism.logger.info("Received config from server.");
}
}
public EntityPlayer getPlayer(MessageContext context)