Myrtrees

Myrtrees

2M Downloads

[Issue] Conflict with resource loading/kubejs

enmumne opened this issue ยท 0 comments

commented

Minecraft Version

1.19.2

Modloader

fabric-api-0.73.2+1.19.2

Mod version

myrtrees-fabric-1.2.0-build.32

Repeatable?

  • Yes

Link to log files

[Server thread/ERROR]: Error executing task on Server
java.lang.NullPointerException: Cannot invoke "net.minecraft.class_2769.method_11899()" because "$$1" is null
	at Not Enough Crashes deobfuscated stack trace.(1.19.2+build.28) ~[?:?]
	at net.minecraft.loot.function.CopyStateFunction$Serializer.method_21899(CopyStateFunction:108) ~[?:?]
	at java.lang.Iterable.forEach(Iterable.java:75) ~[?:?]
	at net.minecraft.loot.function.CopyStateFunction$Serializer.toJson(CopyStateFunction:108) ~[?:?]
	at net.minecraft.loot.function.CopyStateFunction$Serializer.toJson(CopyStateFunction:102) ~[?:?]
	at net.minecraft.util.JsonSerializing$GsonSerializer.serialize(JsonSerializing:125) ~[?:?]
	at com.google.gson.internal.bind.TreeTypeAdapter.write(TreeTypeAdapter.java:81) ~[gson-2.8.9.jar:?]
	at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:69) ~[gson-2.8.9.jar:?]
	at com.google.gson.internal.bind.ArrayTypeAdapter.write(ArrayTypeAdapter.java:95) ~[gson-2.8.9.jar:?]
	at com.google.gson.Gson.toJson(Gson.java:735) ~[gson-2.8.9.jar:?]
	at com.google.gson.Gson.toJsonTree(Gson.java:628) ~[gson-2.8.9.jar:?]
	at com.google.gson.Gson.toJsonTree(Gson.java:607) ~[gson-2.8.9.jar:?]
	at com.google.gson.internal.bind.TreeTypeAdapter$GsonContextImpl.serialize(TreeTypeAdapter.java:155) ~[gson-2.8.9.jar:?]
	at net.minecraft.loot.entry.LeafEntry$Serializer.addEntryFields(LeafEntry:141) ~[?:?]
	at net.minecraft.loot.entry.ItemEntry$Serializer.addEntryFields(ItemEntry:43) ~[?:?]
	at net.minecraft.loot.entry.ItemEntry$Serializer.addEntryFields(ItemEntry:40) ~[?:?]
	at net.minecraft.loot.entry.LootPoolEntry$Serializer.toJson(LootPoolEntry:80) ~[?:?]
	at net.minecraft.loot.entry.LootPoolEntry$Serializer.toJson(LootPoolEntry:74) ~[?:?]
	at net.minecraft.util.JsonSerializing$GsonSerializer.serialize(JsonSerializing:125) ~[?:?]
	at com.google.gson.internal.bind.TreeTypeAdapter.write(TreeTypeAdapter.java:81) ~[gson-2.8.9.jar:?]
	at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:69) ~[gson-2.8.9.jar:?]
	at com.google.gson.internal.bind.ArrayTypeAdapter.write(ArrayTypeAdapter.java:95) ~[gson-2.8.9.jar:?]
	at com.google.gson.Gson.toJson(Gson.java:735) ~[gson-2.8.9.jar:?]
	at com.google.gson.Gson.toJsonTree(Gson.java:628) ~[gson-2.8.9.jar:?]
	at com.google.gson.Gson.toJsonTree(Gson.java:607) ~[gson-2.8.9.jar:?]
	at com.google.gson.internal.bind.TreeTypeAdapter$GsonContextImpl.serialize(TreeTypeAdapter.java:155) ~[gson-2.8.9.jar:?]
	at net.minecraft.loot.LootPool$Serializer.serialize(LootPool:186) ~[?:?]
	at net.minecraft.loot.LootPool$Serializer.serialize(LootPool:169) ~[?:?]
	at com.google.gson.internal.bind.TreeTypeAdapter.write(TreeTypeAdapter.java:81) ~[gson-2.8.9.jar:?]
	at com.google.gson.internal.bind.TypeAdapterRuntimeTypeWrapper.write(TypeAdapterRuntimeTypeWrapper.java:69) ~[gson-2.8.9.jar:?]
	at com.google.gson.internal.bind.ArrayTypeAdapter.write(ArrayTypeAdapter.java:95) ~[gson-2.8.9.jar:?]
	at com.google.gson.Gson.toJson(Gson.java:735) ~[gson-2.8.9.jar:?]
	at com.google.gson.Gson.toJsonTree(Gson.java:628) ~[gson-2.8.9.jar:?]
	at com.google.gson.Gson.toJsonTree(Gson.java:607) ~[gson-2.8.9.jar:?]
	at com.google.gson.internal.bind.TreeTypeAdapter$GsonContextImpl.serialize(TreeTypeAdapter.java:155) ~[gson-2.8.9.jar:?]
	at net.minecraft.loot.LootTable$Serializer.serialize(LootTable:240) ~[?:?]
	at net.minecraft.loot.LootTable$Serializer.serialize(LootTable:210) ~[?:?]
	at com.google.gson.internal.bind.TreeTypeAdapter.write(TreeTypeAdapter.java:81) ~[gson-2.8.9.jar:?]
	at com.google.gson.Gson.toJson(Gson.java:735) ~[gson-2.8.9.jar:?]
	at com.google.gson.Gson.toJsonTree(Gson.java:628) ~[gson-2.8.9.jar:?]
	at com.google.gson.Gson.toJsonTree(Gson.java:607) ~[gson-2.8.9.jar:?]
	at uk.me.desert_island.rer.RoughlyEnoughResources.sendLootToPlayers(RoughlyEnoughResources.java:53) ~[rer-2.6.0.jar:?]
	at net.minecraft.server.PlayerManager.handler$kio004$roughlyenoughresources$onPlayerConnect(PlayerManager:14506) ~[?:?]
	at net.minecraft.server.PlayerManager.onPlayerConnect(PlayerManager:289) ~[?:?]
	at net.minecraft.server.network.ServerLoginNetworkHandler.addToServer(ServerLoginNetworkHandler:151) ~[?:?]
	at net.minecraft.server.network.ServerLoginNetworkHandler.mdc8359d$polymer$lambda$polymer_prePlayHandshakeHackfest$0$0(ServerLoginNetworkHandler:2052) ~[?:?]
	at eu.pb4.polymer.impl.networking.EarlyConnectionMagic.lambda$handle$0(EarlyConnectionMagic.java:28) ~[polymer-0.2.18+1.19.2-cd67caaa292fd17e.jar:?]
	at eu.pb4.polymer.api.x.EarlyPlayNetworkHandler.lambda$onKeepAlive$0(EarlyPlayNetworkHandler.java:98) ~[polymer-0.2.18+1.19.2-cd67caaa292fd17e.jar:?]
	at net.minecraft.server.ServerTask.run(ServerTask:18) ~[?:?]
	at net.minecraft.util.thread.ThreadExecutor.executeTask(ThreadExecutor:157) ~[?:?]
	at net.minecraft.util.thread.ReentrantThreadExecutor.executeTask(ReentrantThreadExecutor:23) ~[?:?]
	at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer:776) ~[client-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.executeTask(MinecraftServer:159) ~[client-intermediary.jar:?]
	at net.minecraft.util.thread.ThreadExecutor.runTask(ThreadExecutor:131) ~[?:?]
	at net.minecraft.server.MinecraftServer.runOneTask(MinecraftServer:758) ~[client-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.runTask(MinecraftServer:752) ~[client-intermediary.jar:?]
	at net.minecraft.util.thread.ThreadExecutor.runTasks(ThreadExecutor:116) ~[?:?]
	at net.minecraft.server.MinecraftServer.runTasksTillTickEnd(MinecraftServer:736) ~[client-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.runServer(MinecraftServer:669) ~[client-intermediary.jar:?]
	at net.minecraft.server.MinecraftServer.method_29739(MinecraftServer:257) ~[client-intermediary.jar:?]
	at java.lang.Thread.run(Thread.java:833) [?:?]

Steps to reproduce the issue

No response

Description of the issue you are having

Kubejs was failing silently to load recipes.

Manually doing a /reload would end in "Reload failed; keeping old data" message.

I started removing mods one by one until I figured out the issue was caused by this one.

The error above shows up in the logs right when resources fail to load, and I'm quite sure it's related.

Information

  • I have provided as much information as possible