mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
Fixed the crafting issue - it was fairly silly, actually
This commit is contained in:
1 parent
3305581373
commit
a31449c2d3
4 files changed
+30
-19
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user