Jump to content

Recommended Posts

Posted

Ever since the 1.20 update, a patch in my mod has started giving me an error message in the logs. It doesn't appear to effect how the patch actually works - it still does what I want it to do - but for the life of me, I can't figure out what the error means or what's causing it.

Here's the patch:

[
	{ file: "game:blocktypes/plant/leaves/normal", op: "addmerge", path: "/drops/0", value: 
		{ type: "block", code: "game:leaves-placed-{wood}", quantity: { avg: 1 }, tool: "saw", "LastDrop": true  }
	}
]

And here's the error:

4.2.2025 18:58:43 [Error] Patch 0 (target: game:blocktypes/plant/leaves/normal.json) in game:patches/survival-blocktypes-plant-leaves-normal.json failed because supplied path /drops/0/quantityByType/dropModbyStat is invalid: The json path /drops/0/quantityByType/dropModbyStat was not found. Could traverse until /drops/0, but then 'quantityByType' does not exist. Full json at this path: {
  "type": "block",
  "code": "game:leaves-placed-{wood}",
  "tool": "saw",
  "LastDrop": true
}

I tried putting in other patches to leaves and they worked without giving me an error. I have a similar patch to branchy leaves that doesn't give me an error. This wasn't giving me an error in the previous update. I just can't figure out what's wrong.

Posted (edited)

That error seem to not come from that patch. Do you have any other mods/patches that targets the same file?

Several versions of the same mod in the mods directory?

Other mods that affects the leaves?

Edited by xXx_Ape_xXx
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.