Technici4n / Powah

Discussion on the AE2 Discord server:
https://discord.gg/Zd6t9ka7ne
GNU Lesser General Public License v3.0
29 stars 23 forks source link

Unload entire chunks at once #155

Closed shartte closed 4 months ago

shartte commented 4 months ago

This intends to fix:

java.lang.RuntimeException: Cable added to position BlockPos{x=-1255, y=111, z=-113}, but there was already one there?
at owmii.powah.block.cable.CableNet.addCable(CableNet.java:23) ~[Powah-5.0.5.jar%23801!/:?] {re:classloading}
at owmii.powah.block.cable.CableTile.m_6339_(CableTile.java:44) ~[Powah-5.0.5.jar%23801!/:?] {re:classloading}
at net.minecraft.world.level.chunk.LevelChunk.m_142169_(LevelChunk.java:362) ~[server-1.20.1-20230612.114412-srg.jar%23917!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:corgilib.mixins.json:chunk.MixinLevelChunk,pl:mixin:APP:lootr.mixins.json:MixinLevelChunk,pl:mixin:APP:gtceu.mixins.json:ChunkMixin,pl:mixin:APP:moonlight-common.mixins.json:LevelChunkMixin,pl:mixin:A}
at net.minecraft.world.level.chunk.storage.ChunkSerializer.m_196900_(ChunkSerializer.java:404) ~[server-1.20.1-20230612.114412-srg.jar%23917!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:corgilib.mixins.json:chunk.MixinChunkSerializer,pl:mixin:APP:railways-common.mixins.json:ChunkSerializerMixin,pl:mixin:APP:architectury.mixins.json:MixinChunkSerializer,pl:mixin:A}
at net.minecraft.world.level.chunk.LevelChunk.m_62952_(LevelChunk.java:438) ~[server-1.20.1-20230612.114412-srg.jar%23917!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:APP:corgilib.mixins.json:chunk.MixinLevelChunk,pl:mixin:APP:lootr.mixins.json:MixinLevelChunk,pl:mixin:APP:gtceu.mixins.json:ChunkMixin,pl:mixin:APP:moonlight-common.mixins.json:LevelChunkMixin,pl:mixin:A}
at net.minecraft.server.level.ChunkMap.mixinextras$bridge$m_62952_$152(ChunkMap.java) ~[server-1.20.1-20230612.114412-srg.jar%23917!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
at net.minecraft.server.level.ChunkMap.wrapOperation$zdf000$setCurrentLoadingThenPostLoad(ChunkMap.java:1905) ~[server-1.20.1-20230612.114412-srg.jar%23917!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
at net.minecraft.server.level.ChunkMap.m_214854_(ChunkMap.java:715) ~[server-1.20.1-20230612.114412-srg.jar%23917!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
at com.mojang.datafixers.util.Either.lambda$mapLeft$0(Either.java:162) ~[datafixerupper-6.0.8.jar%2377!/:?] {re:mixin}
at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-6.0.8.jar%2377!/:?] {}
at com.mojang.datafixers.util.Either.mapLeft(Either.java:162) ~[datafixerupper-6.0.8.jar%2377!/:?] {re:mixin}
at net.minecraft.server.level.ChunkMap.m_287044_(ChunkMap.java:699) ~[server-1.20.1-20230612.114412-srg.jar%23917!/:?] {re:mixin,pl:accesstransformer:B,re:classloading,pl:accesstransformer:B,pl:mixin:A}
at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?] {}
at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?] {}
Technici4n commented 4 months ago

Generally this error is caused by other mods. Do we know why it's happening?

shartte commented 4 months ago

Nope and it's impossible to debug so yeeting the entire chunk at least gives us an out

Technici4n @.***> schrieb am So., 30. Juni 2024, 16:47:

Generally this error is caused by other mods. Do we know why it's happening?

— Reply to this email directly, view it on GitHub https://github.com/Technici4n/Powah/pull/155#issuecomment-2198586727, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJT6V5CIFWK63VZYENNAJ3ZKALBBAVCNFSM6AAAAABKEBCXYGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCOJYGU4DMNZSG4 . You are receiving this because you authored the thread.Message ID: @.***>