use patches array instead of side patches
All checks were successful
continuous-integration/drone/push Build is passing
ci/woodpecker/manual/central-override Pipeline was successful

This commit is contained in:
Timo Ley 2023-09-01 11:32:38 +02:00
parent 3c2dd500a2
commit 25cf1e7561
3 changed files with 13 additions and 14 deletions

View file

@ -36,9 +36,8 @@ Patches are applied in the following order:
patches of that instance addon are applied according to the same order rules
2. Patches inherited from the another instance addon using the `patch` [flag](flags.md) in the order,
in which the addons are specified in the [relations array](../schema/manifest.md#relations)
3. Patches done directly by the instance addon using the
[client_patches](../schema/manifest.md#clientpatches) and [server_patches](../schema/manifest.md#serverpatches)
properties.
3. Patches done directly by the instance addon using the [patches array](../schema/manifest.md#patches)
in the order, in which they are specified in the array.
## Main file

View file

@ -12,8 +12,7 @@
"repositories": [],
"instance": false,
"use_builder": false,
"client_patches": {},
"server_patches": {},
"patches": [],
"meta": {}
}
```
@ -71,16 +70,10 @@ This is a boolean which specifies, if this addon will use the [environment build
Only valid if [instance](#instance) is `true`.
If this property is not present, it defaults to `false`. (DEPRECATED)
### client_patches
### patches
This is a [patch object](patch.md) for the client,
which can be used to modify the launch configuration of this instance.
Only available for [instance addons](../concepts/instance.md).
### server_patches
This is a [patch object](patch.md) for the server,
which can be used to modify the launch configuration of this instance.
This is an array of [patch object](patch.md) which can be used to modify t
he launch configuration of this instance.
Only available for [instance addons](../concepts/instance.md).
### meta

View file

@ -2,6 +2,7 @@
```json
{
"side": "client",
"main_class": "com.example.SomeClass",
"arguments": [],
"jvm_arguments": ["-Djvmargument"],
@ -10,6 +11,12 @@
}
```
## Required properties
### side
This specifies, for which side this patch should be applied. Valid values are `client`, `server` and `both`.
## Optional properties
### main_class