use patches array instead of side patches
This commit is contained in:
parent
3c2dd500a2
commit
25cf1e7561
3 changed files with 13 additions and 14 deletions
|
@ -36,9 +36,8 @@ Patches are applied in the following order:
|
||||||
patches of that instance addon are applied according to the same order rules
|
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,
|
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)
|
in which the addons are specified in the [relations array](../schema/manifest.md#relations)
|
||||||
3. Patches done directly by the instance addon using the
|
3. Patches done directly by the instance addon using the [patches array](../schema/manifest.md#patches)
|
||||||
[client_patches](../schema/manifest.md#clientpatches) and [server_patches](../schema/manifest.md#serverpatches)
|
in the order, in which they are specified in the array.
|
||||||
properties.
|
|
||||||
|
|
||||||
## Main file
|
## Main file
|
||||||
|
|
||||||
|
|
|
@ -12,8 +12,7 @@
|
||||||
"repositories": [],
|
"repositories": [],
|
||||||
"instance": false,
|
"instance": false,
|
||||||
"use_builder": false,
|
"use_builder": false,
|
||||||
"client_patches": {},
|
"patches": [],
|
||||||
"server_patches": {},
|
|
||||||
"meta": {}
|
"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`.
|
Only valid if [instance](#instance) is `true`.
|
||||||
If this property is not present, it defaults to `false`. (DEPRECATED)
|
If this property is not present, it defaults to `false`. (DEPRECATED)
|
||||||
|
|
||||||
### client_patches
|
### patches
|
||||||
|
|
||||||
This is a [patch object](patch.md) for the client,
|
This is an array of [patch object](patch.md) which can be used to modify t
|
||||||
which can be used to modify the launch configuration of this instance.
|
he 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.
|
|
||||||
Only available for [instance addons](../concepts/instance.md).
|
Only available for [instance addons](../concepts/instance.md).
|
||||||
|
|
||||||
### meta
|
### meta
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
"side": "client",
|
||||||
"main_class": "com.example.SomeClass",
|
"main_class": "com.example.SomeClass",
|
||||||
"arguments": [],
|
"arguments": [],
|
||||||
"jvm_arguments": ["-Djvmargument"],
|
"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
|
## Optional properties
|
||||||
|
|
||||||
### main_class
|
### main_class
|
||||||
|
|
Loading…
Reference in a new issue