Modding:JSON Patching: Difference between revisions

From Vintage Story Wiki
swapped variable and value positions
(Added an example for using "side" property. Needs validating from coders.)
(swapped variable and value positions)
Line 116: Line 116:
If you know that a target JSON file is only applied on the server or client, you can use the attribute "side" with the appropriate value to avoid unnecessary processing and the accompanying warnings in log files such as "''Hint: This asset is usually only loaded Server side''". For example, a cooking recipe will only be loaded by the server and you could therefore add the attribute :
If you know that a target JSON file is only applied on the server or client, you can use the attribute "side" with the appropriate value to avoid unnecessary processing and the accompanying warnings in log files such as "''Hint: This asset is usually only loaded Server side''". For example, a cooking recipe will only be loaded by the server and you could therefore add the attribute :
<syntaxhighlight lang="json">
<syntaxhighlight lang="json">
"server": "side"
"side": "server"
</syntaxhighlight>
</syntaxhighlight>
so the client doesn't try to patch anything.
so the client doesn't try to patch anything.
Confirmedusers, editor
1,051

edits