Tech Reborn

Tech Reborn

30M Downloads

Failed to save chunk

xardius opened this issue ยท 0 comments

commented

Describe the bug
I got the ingame message that a chunk could not be saved. In the log file are hints that this has something to do with Tech Reborn. The Chunk that could not be saved contains a village with an iron alloy furnace (that naturally spawned there).

I have recreated the world and the error is reproducable. However the error only seems to occure once per created world. Always at the same chunk after the first time generating the chunk and then leavin the area. Going back and leaving again and the chunk seems to save just fine.

Steps to Reproduce
Steps to reproduce the behavior:

  • Create a world with the seed 114000023
  • let Chunk 40,42 generate
  • leave the area so the chunk unloads and therefore should be saved.
  • error message at the right top border appears.

Screenshots
This is the naturally spawned Iron Alloy Furnace in Chunk 40,42
grafik

Environment (please complete the following information with the version):

  • Minecraft: 1.21
  • Mod Loader: Fabric

Logs
small part of the log:

[20:55:25] [Server thread/ERROR]: Failed to save chunk 40,42
java.lang.NullPointerException: null
	at java.base/java.util.Objects.requireNonNull(Objects.java:233) ~[?:?]
	at reborncore.common.util.RebornInventory.write(RebornInventory.java:115) ~[reborncore-5.11.8-32f0a959b250944e.jar:?]
	at reborncore.common.util.RebornInventory.write(RebornInventory.java:111) ~[reborncore-5.11.8-32f0a959b250944e.jar:?]
	at reborncore.common.blockentity.MachineBaseBlockEntity.method_11007(MachineBaseBlockEntity.java:304) ~[reborncore-5.11.8-32f0a959b250944e.jar:?]
	at techreborn.blockentity.machine.iron.AbstractIronMachineBlockEntity.method_11007(AbstractIronMachineBlockEntity.java:147) ~[TechReborn-5.11.8.jar:?]
	at net.minecraft.class_2586.method_38244(class_2586.java:114) ~[client-intermediary.jar:?]
	at net.minecraft.class_2586.method_38242(class_2586.java:94) ~[client-intermediary.jar:?]
	at net.minecraft.class_2839.method_20598(class_2839.java:288) ~[client-intermediary.jar:?]
	at net.minecraft.class_2852.method_12410(class_2852.java:331) ~[client-intermediary.jar:?]
	at net.minecraft.class_3898.method_17228(class_3898.java:784) ~[client-intermediary.jar:?]
	at net.minecraft.class_3898.method_60440(class_3898.java:511) ~[client-intermediary.jar:?]
	at java.base/java.util.concurrent.CompletableFuture$UniRun.tryFire(CompletableFuture.java:787) ~[?:?]
	at java.base/java.util.concurrent.CompletableFuture$Completion.run(CompletableFuture.java:482) ~[?:?]
	at net.minecraft.class_3898.method_20605(class_3898.java:483) ~[client-intermediary.jar:?]
	at net.minecraft.class_3898.method_17233(class_3898.java:441) ~[client-intermediary.jar:?]
	at net.minecraft.class_3215.method_12127(class_3215.java:314) ~[client-intermediary.jar:?]
	at net.minecraft.class_3218.method_18765(class_3218.java:350) ~[client-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_3813(MinecraftServer.java:1021) ~[client-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_3748(MinecraftServer.java:912) ~[client-intermediary.jar:?]
	at net.minecraft.class_1132.method_3748(class_1132.java:114) ~[client-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_29741(MinecraftServer.java:697) ~[client-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer.java:281) ~[client-intermediary.jar:?]

complete log:
https://pastebin.com/fdPmgtGw