Skip to content

Commit

Permalink
server crash bug fix on Default Server List
Browse files Browse the repository at this point in the history
  • Loading branch information
Taskeren committed Dec 31, 2024
1 parent f512d80 commit 783c757
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 25 deletions.
22 changes: 1 addition & 21 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,36 +34,16 @@
* For more details, see https://docs.gradle.org/8.0.1/userguide/java_library_plugin.html#sec:java_library_configurations_graph
*/
dependencies {
// generated code start - DON'T CHANGE!
// CodeChickenCore
implementation("com.github.GTNewHorizons:CodeChickenCore:1.3.10:dev")
// CodeChickenLib
// implementation("com.github.GTNewHorizons:CodeChickenLib:1.3.0:dev")
// Gregtech
implementation("com.github.GTNewHorizons:GT5-Unofficial:5.09.50.103:dev")
// GT++
// implementation("com.github.GTNewHorizons:GTplusplus:1.12.11:dev")
// GTNHLib
implementation("com.github.GTNewHorizons:GTNHLib:0.5.21:dev")
// NewHorizonsCore
implementation("com.github.GTNewHorizons:NewHorizonsCoreMod:2.6.88:dev")
// GoodGenerator
// implementation("com.github.GTNewHorizons:GoodGenerator:0.9.5:dev")
// TecTech
// implementation("com.github.GTNewHorizons:TecTech:5.4.3:dev")
// Forestry
implementation("com.github.GTNewHorizons:ForestryMC:4.9.19:dev") { transitive = false }
// Railcraft
implementation("com.github.GTNewHorizons:Railcraft:9.15.15:dev") { transitive = false }
// Buildcraft
implementation("com.github.GTNewHorizons:BuildCraft:7.1.39:dev") { transitive = false }
// EnderIO
implementation("com.github.GTNewHorizons:EnderIO:2.8.22:dev") { transitive = false }
// ProjectRed
implementation("com.github.GTNewHorizons:ProjectRed:4.10.5-GTNH:dev") { transitive = false }
// TinkerConstruct
implementation("com.github.GTNewHorizons:TinkersConstruct:1.12.16-GTNH:dev") { transitive = false }
// AppleCore
implementation("com.github.GTNewHorizons:AppleCore:3.3.4:api")
// generated code end
runtimeOnly("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev") { transitive = false }
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package cn.elytra.mod.gtnn.rewind.module.large_essentia_generator

import cn.elytra.mod.gtnn.rewind.IModule
import cpw.mods.fml.common.event.FMLPostInitializationEvent
import goodgenerator.util.ItemRefer
import gregtech.api.GregTechAPI
import gregtech.api.enums.ItemList
Expand All @@ -22,7 +21,7 @@ object ModLargeEssentiaGeneratorRemovedRecipe : IModule {
enabled = configuration.getBoolean("add-removed-recipe", "large-essentia-generator", enabled, "add LEG recipe back")
}

override fun fmlPostInit(e: FMLPostInitializationEvent) {
override fun registerRecipes() {
GregTechAPI.sThaumcraftCompat.addInfusionRecipe(
"ESSENTIA_GENERATOR",
ItemList.Hull_HV.get(1),
Expand All @@ -45,4 +44,5 @@ object ModLargeEssentiaGeneratorRemovedRecipe : IModule {
)
)
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ object ModAntiDefaultServerList : IModule {
}

private val LOG = LogManager.getLogger()
private val ThatList = MyAlwaysEmptyAndTellYouMamaWhenElementIsAddedList<ServerData> {
LOG.info("You are not my Elytra server! ${it.serverName}(${it.serverIP})")
private val ThatList by lazy {
MyAlwaysEmptyAndTellYouMamaWhenElementIsAddedList<ServerData> {
LOG.info("You are not my Elytra server! ${it.serverName}(${it.serverIP})")
}
}

override fun fmlPreInit(e: FMLPreInitializationEvent) {
Expand Down

0 comments on commit 783c757

Please sign in to comment.