Botania

Botania

133M Downloads

Rafflowsia fails to load its block entity data after consuming flowers

TheRealWormbo opened this issue · 0 comments

commented

Mod Loader

Fabric

Minecraft Version

1.20.1

Botania version

445

Modloader version

(any)

Modpack info

No response

The latest.log file

(n/a)

Issue description

Relevant logged exception:

[22:34:16] [Server thread/ERROR] (Minecraft) Failed to load data for block entity botania:rafflowsia
 java.lang.NullPointerException: Cannot invoke "net.minecraft.world.level.Level.holderLookup(net.minecraft.resources.ResourceKey)" because "this.level" is null
	at vazkii.botania.common.block.flower.generating.RafflowsiaBlockEntity.readFromPacketNBT(RafflowsiaBlockEntity.java:140) ~[main/:?]
	at vazkii.botania.api.block_entity.SpecialFlowerBlockEntity.load(SpecialFlowerBlockEntity.java:157) ~[main/:?]
	at net.minecraft.world.level.block.entity.BlockEntity.method_17897(BlockEntity.java:132) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at java.util.Optional.map(Optional.java:260) ~[?:?]
	at net.minecraft.world.level.block.entity.BlockEntity.loadStatic(BlockEntity.java:130) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.world.level.chunk.storage.ChunkSerializer.method_39797(ChunkSerializer.java:408) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.world.level.chunk.LevelChunk.runPostLoad(LevelChunk.java:442) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.server.level.ChunkMap.method_17227(ChunkMap.java:751) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at com.mojang.datafixers.util.Either.lambda$mapLeft$0(Either.java:162) ~[datafixerupper-6.0.8.jar:?]
	at com.mojang.datafixers.util.Either$Left.map(Either.java:38) ~[datafixerupper-6.0.8.jar:?]
	at com.mojang.datafixers.util.Either.mapLeft(Either.java:162) ~[datafixerupper-6.0.8.jar:?]
	at net.minecraft.server.level.ChunkMap.method_20460(ChunkMap.java:739) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at java.util.concurrent.CompletableFuture$UniApply.tryFire(CompletableFuture.java:646) ~[?:?]
	at java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?]
	at net.minecraft.server.level.ChunkTaskPriorityQueueSorter.method_17634(ChunkTaskPriorityQueueSorter.java:62) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.util.thread.BlockableEventLoop.doRunTask(BlockableEventLoop.java:156) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.server.level.ServerChunkCache$MainThreadExecutor.doRunTask(ServerChunkCache.java:564) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.util.thread.BlockableEventLoop.pollTask(BlockableEventLoop.java:130) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.server.level.ServerChunkCache$MainThreadExecutor.pollTask(ServerChunkCache.java:573) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.server.level.ServerChunkCache.pollTask(ServerChunkCache.java:282) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.server.MinecraftServer.pollTaskInternal(MinecraftServer.java:770) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.server.MinecraftServer.pollTask(MinecraftServer.java:758) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.util.thread.BlockableEventLoop.managedBlock(BlockableEventLoop.java:139) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.server.MinecraftServer.waitUntilNextTick(MinecraftServer.java:743) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.server.MinecraftServer.prepareLevels(MinecraftServer.java:488) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.server.MinecraftServer.loadLevel(MinecraftServer.java:327) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.client.server.IntegratedServer.initServer(IntegratedServer.java:69) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer.java:646) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:265) ~[[email protected]_20_1.layered+hash.1899487486-v2.jar:?]
	at java.lang.Thread.run(Thread.java:840) ~[?:?]

Steps to reproduce

  1. Place Rafflowsia
  2. Place consumable special flower
  3. Relog — above exception is logged; if the flower was bound to a spreader before, it no longer is

Other information

No response