diff --git a/src/main/java/StevenDimDoors/mod_pocketDim/ConnectionHandler.java b/src/main/java/StevenDimDoors/mod_pocketDim/ConnectionHandler.java index de0eb0d9..77fd7e63 100644 --- a/src/main/java/StevenDimDoors/mod_pocketDim/ConnectionHandler.java +++ b/src/main/java/StevenDimDoors/mod_pocketDim/ConnectionHandler.java @@ -14,26 +14,6 @@ import net.minecraftforge.common.network.ForgeMessage; public class ConnectionHandler { - @SubscribeEvent - public String connectionReceived(FMLNetworkEvent.ServerConnectionFromClientEvent event) - { - for(NewDimData data : PocketManager.getDimensions()) - { - try - { - if(data.isPocketDimension()||data.id()==mod_pocketDim.properties.LimboDimensionID) - { - event.manager.channel().writeAndFlush(new ForgeMessage.DimensionRegisterMessage(data.id(), DimensionManager.getProviderType(data.id()))); - } - } - catch(Exception E) - { - E.printStackTrace(); - } - } - return null; - } - @SubscribeEvent public void connectionClosed(FMLNetworkEvent.ClientDisconnectionFromServerEvent event) {