starrypop / Natural-Clay

Some natural clay colors and variants for every ceramic block
0 stars 0 forks source link

Patch errors when Maltiez' firearms is not installed #7

Closed sekelsta closed 3 months ago

sekelsta commented 4 months ago

Vintage Story version: 1.19.7 Natural Clay version: 1.0.7

Errors in server log:

13.5.2024 17:08:48 [Error] Patch 0 (target: naturalclay:recipes/clayforming/compat/maltiezfirearms/barrelmold.json) in naturalclay:patches/compatibility/maltiezfirearms/patches/disable-if-not-there.json failed, following Exception was thrown:
13.5.2024 17:08:48 [Error] Exception: Accessed JArray values with invalid key value: "enabled". Int32 array index expected.
   at Newtonsoft.Json.Linq.JArray.get_Item(Object key)
   at JsonPatch.Adaptors.JsonNetTargetAdapter.AddInsertPrepend(IValueOperation operation)
   at Tavis.PatchDocument.ApplyTo(IPatchTarget target)
   at Vintagestory.ServerMods.NoObf.ModJsonPatchLoader.ApplyPatch(Int32 patchIndex, AssetLocation patchSourcefile, JsonPatch jsonPatch, Int32& applied, Int32& notFound, Int32& errorCount) in VSEssentials\Loading\JsonPatchLoader.cs:line 342
13.5.2024 17:08:48 [Error] Patch 1 (target: naturalclay:recipes/clayforming/compat/maltiezfirearms/bullets.json) in naturalclay:patches/compatibility/maltiezfirearms/patches/disable-if-not-there.json failed, following Exception was thrown:
13.5.2024 17:08:48 [Error] Exception: Accessed JArray values with invalid key value: "enabled". Int32 array index expected.
   at Newtonsoft.Json.Linq.JArray.get_Item(Object key)
   at JsonPatch.Adaptors.JsonNetTargetAdapter.AddInsertPrepend(IValueOperation operation)
   at Tavis.PatchDocument.ApplyTo(IPatchTarget target)
   at Vintagestory.ServerMods.NoObf.ModJsonPatchLoader.ApplyPatch(Int32 patchIndex, AssetLocation patchSourcefile, JsonPatch jsonPatch, Int32& applied, Int32& notFound, Int32& errorCount) in VSEssentials\Loading\JsonPatchLoader.cs:line 342
13.5.2024 17:08:48 [Error] Patch 2 (target: naturalclay:recipes/clayforming/compat/maltiezfirearms/slugs.json) in naturalclay:patches/compatibility/maltiezfirearms/patches/disable-if-not-there.json failed, following Exception was thrown:
13.5.2024 17:08:48 [Error] Exception: Accessed JArray values with invalid key value: "enabled". Int32 array index expected.
   at Newtonsoft.Json.Linq.JArray.get_Item(Object key)
   at JsonPatch.Adaptors.JsonNetTargetAdapter.AddInsertPrepend(IValueOperation operation)
   at Tavis.PatchDocument.ApplyTo(IPatchTarget target)
   at Vintagestory.ServerMods.NoObf.ModJsonPatchLoader.ApplyPatch(Int32 patchIndex, AssetLocation patchSourcefile, JsonPatch jsonPatch, Int32& applied, Int32& notFound, Int32& errorCount) in VSEssentials\Loading\JsonPatchLoader.cs:line 342