Crash with Thermal Dynamics and AE

My Server is crashing because some player is causing this to happen. Please help!
---- Minecraft Crash Report ----

WARNING: coremods are present:
IELoadingPlugin (ImmersiveEngineering-core-0.12-89.jar)
Do not report to Forge! (If you haven’t disabled the FoamFix coremod, try disabling it in the config! Note that this bit of text will still appear.) (foamfix-0.10.3-1.12.2.jar)
LoadingPlugin (ResourceLoader-MC1.12.1-1.5.3.jar)
TransformerLoader (OpenComputers-MC1.12.2-1.7.4.153.jar)
AstralCore (astralsorcery-1.12.2-1.10.11.jar)
RandomPatches (randompatches-1.12.2-1.16.1.0.jar)
EnderCorePlugin (EnderCore-1.12.2-0.5.45.jar)
CoreMod (Aroma1997Core-1.12.2-2.0.0.2.jar)
SpongeCoremod (spongeforge-1.12.2-2838-7.1.7-RC3821.jar)
ForgelinPlugin (Forgelin-1.8.2.jar)
CTMCorePlugin (CTM-MC1.12.2-0.3.3.22.jar)
Contact their authors BEFORE contacting forge

// Hi. I’m Minecraft, and I’m a crashaholic.

Time: 6/27/19 11:48 AM
Description: Exception ticking world

java.lang.ClassCastException: appeng.tile.networking.TileEnergyAcceptor cannot be cast to cofh.thermaldynamics.duct.tiles.TileGrid
at cofh.thermaldynamics.block.BlockDuct.func_185477_a(BlockDuct.java:152)
at net.minecraft.block.state.BlockStateContainer$StateImplementation.func_185908_a(BlockStateContainer.java:451)
at net.minecraft.world.World.func_191504_a(World.java:1338)
at net.minecraft.world.World.func_184144_a(World.java:1362)
at net.minecraft.entity.EntityLiving.func_70058_J(EntityLiving.java:852)
at net.minecraft.world.WorldEntitySpawner.func_77192_a(WorldEntitySpawner.java:768)
at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:203)
at net.minecraft.server.MinecraftServer.func_71190_q(MinecraftServer.java:756)
at net.minecraft.server.dedicated.DedicatedServer.func_71190_q(DedicatedServer.java:397)
at net.minecraft.server.MinecraftServer.func_71217_p(MinecraftServer.java:668)
at net.minecraft.server.MinecraftServer.run(MinecraftServer.java:526)
at java.lang.Thread.run(Thread.java:748)

A detailed walkthrough of the error, its code path and all known details is as follows:

– Head –
Thread: Server thread
Stacktrace:
at cofh.thermaldynamics.block.BlockDuct.func_185477_a(BlockDuct.java:152)
at net.minecraft.block.state.BlockStateContainer$StateImplementation.func_185908_a(BlockStateContainer.java:451)
at net.minecraft.world.World.func_191504_a(World.java:1338)
at net.minecraft.world.World.func_184144_a(World.java:1362)
at net.minecraft.entity.EntityLiving.func_70058_J(EntityLiving.java:852)
at net.minecraft.world.WorldEntitySpawner.func_77192_a(WorldEntitySpawner.java:768)
at net.minecraft.world.WorldServer.func_72835_b(WorldServer.java:203)

Have you done the foam fix fix?

yes, the server is running fine when the player who causes this is not logged in.

You may get more support on the Thermal dynamics support page as the issue doesnt seem to be related to sponge. Im not familiar with many forge mods so im more then useless