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