diff --git a/core/Registration.java b/core/Registration.java index 22402e63..97490103 100644 --- a/core/Registration.java +++ b/core/Registration.java @@ -121,6 +121,7 @@ import appeng.items.tools.quartz.ToolQuartzPickaxe; import appeng.items.tools.quartz.ToolQuartzSpade; import appeng.items.tools.quartz.ToolQuartzSword; import appeng.items.tools.quartz.ToolQuartzWrench; +import appeng.me.cache.CraftingCache; import appeng.me.cache.EnergyGridCache; import appeng.me.cache.GridStorageCache; import appeng.me.cache.P2PCache; @@ -509,6 +510,7 @@ public class Registration gcr.registerGridCache( P2PCache.class, P2PCache.class ); gcr.registerGridCache( ISpatialCache.class, SpatialPylonCache.class ); gcr.registerGridCache( ISecurityGrid.class, SecurityCache.class ); + gcr.registerGridCache( CraftingCache.class, CraftingCache.class ); AEApi.instance().registries().externalStorage().addExternalStorageInterface( new AEExternalHandler() ); diff --git a/me/cache/CraftingCache.java b/me/cache/CraftingCache.java index c0822c26..ac40cd39 100644 --- a/me/cache/CraftingCache.java +++ b/me/cache/CraftingCache.java @@ -18,6 +18,7 @@ import appeng.api.networking.crafting.ICraftingProvider; import appeng.api.networking.crafting.ICraftingProviderHelper; import appeng.api.networking.events.MENetworkCraftingCpuChange; import appeng.api.networking.events.MENetworkCraftingPatternChange; +import appeng.api.networking.events.MENetworkEventSubscribe; import appeng.api.networking.events.MENetworkPostCacheConstruction; import appeng.api.networking.security.BaseActionSource; import appeng.api.networking.storage.IStorageGrid; @@ -62,11 +63,13 @@ public class CraftingCache implements IGridCache, ICraftingProviderHelper, ICell } } + @MENetworkEventSubscribe public void updateCPUClusters(MENetworkCraftingCpuChange c) { updateList = true; } + @MENetworkEventSubscribe public void updateCPUClusters(MENetworkCraftingPatternChange c) { updatePatterns();