|
5 | 5 | import net.neoforged.bus.api.IEventBus; |
6 | 6 | import net.neoforged.fml.common.Mod; |
7 | 7 | import net.neoforged.fml.event.lifecycle.FMLCommonSetupEvent; |
8 | | -import net.neoforged.neoforge.event.server.ServerStartingEvent; |
9 | | -import net.neoforged.neoforge.event.server.ServerStoppingEvent; |
10 | 8 | import net.neoforged.neoforge.registries.NewRegistryEvent; |
11 | 9 | import org.apache.logging.log4j.Level; |
12 | 10 | import org.cyclops.cyclopscore.config.ConfigHandlerCommon; |
|
26 | 24 | import org.cyclops.integratedterminals.capability.ingredient.TerminalIngredientComponentCapabilities; |
27 | 25 | import org.cyclops.integratedterminals.component.DataComponentTerminalStorageInventoriesConfig; |
28 | 26 | import org.cyclops.integratedterminals.component.DataComponentTerminalStorageStateConfig; |
29 | | -import org.cyclops.integratedterminals.core.terminalstorage.TerminalStorageTabIngredientComponentServer; |
30 | 27 | import org.cyclops.integratedterminals.core.terminalstorage.TerminalStorageTabRegistry; |
31 | 28 | import org.cyclops.integratedterminals.core.terminalstorage.TerminalStorageTabs; |
32 | 29 | import org.cyclops.integratedterminals.core.terminalstorage.crafting.TerminalStorageTabIngredientCraftingHandlerRegistry; |
|
40 | 37 | import org.cyclops.integratedterminals.proxy.ClientProxy; |
41 | 38 | import org.cyclops.integratedterminals.proxy.CommonProxy; |
42 | 39 |
|
43 | | -import java.util.concurrent.Executors; |
44 | | -import java.util.concurrent.TimeUnit; |
45 | | - |
46 | 40 | /** |
47 | 41 | * The main mod class of this mod. |
48 | 42 | * @author rubensworks (aka kroeserr) |
@@ -138,23 +132,6 @@ protected ICommonProxy constructCommonProxy() { |
138 | 132 | return new CommonProxy(); |
139 | 133 | } |
140 | 134 |
|
141 | | - public void onServerStarting(ServerStartingEvent event) { |
142 | | - TerminalStorageTabIngredientComponentServer.PACKET_SERIALIZER = Executors.newFixedThreadPool(1); |
143 | | - } |
144 | | - |
145 | | - public void onServerStopping(ServerStoppingEvent event) { |
146 | | - TerminalStorageTabIngredientComponentServer.PACKET_SERIALIZER.shutdown(); |
147 | | - try { |
148 | | - if (!TerminalStorageTabIngredientComponentServer.PACKET_SERIALIZER.awaitTermination(5, TimeUnit.SECONDS)) { |
149 | | - TerminalStorageTabIngredientComponentServer.PACKET_SERIALIZER.shutdownNow(); |
150 | | - } |
151 | | - } catch (InterruptedException ex) { |
152 | | - TerminalStorageTabIngredientComponentServer.PACKET_SERIALIZER.shutdownNow(); |
153 | | - Thread.currentThread().interrupt(); |
154 | | - } |
155 | | - TerminalStorageTabIngredientComponentServer.PACKET_SERIALIZER = null; |
156 | | - } |
157 | | - |
158 | 135 | /** |
159 | 136 | * Log a new info message for this mod. |
160 | 137 | * @param message The message to show. |
|
0 commit comments