Skip to content

Commit b757d12

Browse files
committed
Merge branch 'nylium' of https://github.com/AzaleeX/PocketMine-MP into nylium
2 parents ff6fb7f + aad9e9e commit b757d12

15 files changed

+151
-145
lines changed

.github/CODEOWNERS

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @pmmp/server-developers

.github/PULL_REQUEST_TEMPLATE.md

+10-21
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,32 @@
1-
## Introduction
1+
<!-- Summarize your PR here. Keep it short and simple. -->
22
<!-- Explain existing problems or why this pull request is necessary -->
33

4-
### Relevant issues
5-
<!-- List relevant issues here -->
4+
### Related issues & PRs
65
<!--
7-
86
* Fixes #1
9-
* Fixes #2
10-
7+
* Related to #2
118
-->
129

1310
## Changes
1411
### API changes
1512
<!-- Any additions to the API that should be documented in release notes? -->
13+
<!-- If not, you can delete this section -->
1614

1715
### Behavioural changes
1816
<!-- Any change in how the server behaves, or its performance? -->
17+
<!-- If not, you can delete this section -->
1918

2019
## Backwards compatibility
2120
<!-- Any possible backwards incompatible changes? How are they solved, or how can they be solved? -->
21+
<!-- If not, you can delete this section -->
2222

2323
## Follow-up
2424
<!-- Suggest any actions to be done before/after merging this pull request -->
25-
<!--
26-
27-
Requires translations:
28-
29-
| Name | Value in eng.ini |
30-
| :--: | :---: |
31-
| `foo.bar` | `Foo bar` |
32-
33-
-->
25+
<!-- For example, future changes that this PR lays the groundwork for -->
3426

3527
## Tests
3628
<!--
37-
PRs which have not been tested MUST be marked as draft.
29+
If this PR affects gameplay or user experience in some way, it must be manually tested.
30+
Include any screenshots or videos of manual testing here.
31+
Any test plugin code should also be pasted here if it can't be adapted to a PHPUnit test.
3832
-->
39-
I tested this PR by doing the following (tick all that apply):
40-
- [ ] Writing PHPUnit tests (commit these in the `tests/phpunit` folder)
41-
- [ ] Playtesting using a Minecraft client (provide screenshots or a video)
42-
- [ ] Writing a test plugin (provide the code and sample output)
43-
- [ ] Other (provide details)

.github/workflows/team-pr-auto-approve.yml

+16-20
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,26 @@ on:
1313
- reopened
1414
- ready_for_review
1515

16-
permissions:
17-
pull-requests: write
18-
1916
jobs:
20-
approve:
21-
name: Auto approve
17+
dispatch:
18+
name: Request approval
2219
runs-on: ubuntu-latest
20+
if: '! github.event.pull_request.draft'
2321

2422
steps:
25-
- name: Check if PR author has write access
26-
id: check-permission
27-
uses: actions-cool/check-user-permission@v2
23+
- name: Generate access token
24+
id: generate-token
25+
uses: actions/create-github-app-token@v1
2826
with:
29-
token: ${{ secrets.GITHUB_TOKEN }}
30-
require: write
31-
username: ${{ github.event.pull_request.user.login }}
32-
#technically this would be fine for dependabot but generally bots don't count as team members
33-
check-bot: true
34-
35-
#TODO: Some way to avoid unnecessary repeated reviews would be nice here
27+
app-id: ${{ vars.RESTRICTED_ACTIONS_DISPATCH_ID }}
28+
private-key: ${{ secrets.RESTRICTED_ACTIONS_DISPATCH_KEY }}
29+
owner: ${{ github.repository_owner }}
30+
repositories: RestrictedActions
3631

37-
- name: Approve PR if authorized
38-
if: steps.check-permission.outputs.require-result == 'true' && steps.check-permission.outputs.check-result == 'false'
39-
uses: juliangruber/approve-pull-request-action@v2
32+
- name: Dispatch restricted action
33+
uses: peter-evans/repository-dispatch@v3
4034
with:
41-
github-token: ${{ secrets.GITHUB_TOKEN }}
42-
number: ${{ github.event.pull_request.number }}
35+
token: ${{ steps.generate-token.outputs.token }}
36+
repository: ${{ github.repository_owner }}/RestrictedActions
37+
event-type: auto_approve_collaborator_pr
38+
client-payload: '{"repo": "${{ github.repository }}", "pull_request_id": "${{ github.event.pull_request.number }}" }'

build/php

Submodule php updated from 084822a to a51259d

changelogs/5.21.md

+9
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,12 @@ Consider using the `mcpe-protocol` directive in `plugin.yml` as a constraint if
101101
## Internals
102102
- Fixed incorrect visibility of `createEntity` in spawn eggs.
103103
- Added support for newer `BedrockBlockUpgradeSchema` in `BlockStateUpgrader`.
104+
105+
# 5.21.1
106+
Released 12th November 2024.
107+
108+
## Fixes
109+
- Fixed server crash when applying a cooldown to an item with 1 count.
110+
- Fixed garbage collector cycle count increase on player disconnect.
111+
- Fixed weakness effect being applied to all attack types, causing damage splash potions to become weaker.
112+
- Fixed Enchanted Golden Apple regeneration effect amplifier to match vanilla.

0 commit comments

Comments
 (0)