117026cb83
Merge branch 'minor-next' into feat/async-events
2024-11-13 23:06:05 +00:00
a7a1077676
CONTRIBUTING: changing an event from sync to async or vice versa is a BC break
2024-11-13 23:00:49 +00:00
0a56cf877b
Remove unused class
2024-11-13 22:58:29 +00:00
11fdf79a7c
...
2024-11-13 22:55:08 +00:00
edae9f26e4
Reduce number of classes
2024-11-13 22:23:43 +00:00
667656b1c6
Split AsyncHandlerListManager
...
this allows further code deduplication at the expense of needing 2 calls to unregister all handlers
2024-11-13 22:08:28 +00:00
972a9fb201
PluginManager: ensure that handler candidates of async events with wrong return types don't attempt to register as sync events
...
this will cause other, more confusing errors to be thrown.
to be honest, I'm not sure if enforcing the return type here is even necessary (or desirable).
2024-11-13 21:30:24 +00:00
ac1cf73f8e
Reduce code duplication
2024-11-13 21:09:52 +00:00
96989d1dc4
cleanup
2024-11-13 20:44:35 +00:00
8aed5d6b27
Handler inheritance is now working
...
this code should also perform somewhat better
2024-11-13 20:35:14 +00:00
3629ee7e7b
Merge 'stable' into 'minor-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/11824307499
2024-11-13 19:21:16 +00:00
fa796535ff
ah hello my old friend, impossible-generics.neon
...
propagating generics all the way through the likes of HandlerList etc is more trouble than it's worth.
2024-11-13 19:09:52 +00:00
32b1d6c0c2
Fixed test code
...
the test still doesn't pass, but at least it's actually testing the problem now...
2024-11-13 18:52:56 +00:00
6f40c6fc1d
CS
2024-11-13 18:49:58 +00:00
a6a44bde90
Fix doc comments
2024-11-13 18:49:32 +00:00
409066c8f5
AsyncEvent: make the code easier to make sense of
2024-11-13 18:49:15 +00:00
cb2fadeb26
Fixed bug in concurrency integration test
2024-11-13 18:47:46 +00:00
a14afb4bb5
Add integration tests
...
most of these are failing - needs to be investigated
2024-11-13 18:39:14 +00:00
db88e543fa
Fix PHPStan error
2024-11-13 16:04:27 +00:00
c426677841
optimization
2024-11-13 16:03:10 +00:00
17ae932d31
HandlerListManager: added getter
2024-11-13 15:36:51 +00:00
8f48fe4856
Fully separate hierarchies for sync & async events
...
there's no way to combine these without causing type compatibility issues for one side or the other.
we might be able to use traits to reduce duplication, but the separation here seems to be necessary.
2024-11-13 15:35:41 +00:00
48d2430064
Update PHPStan baseline
2024-11-13 14:58:09 +00:00
b82d47dd32
Merge branch 'minor-next' into feat/async-events
2024-11-13 14:57:03 +00:00
fbeb017670
Promise: allow zero promises
...
not supporting this has caused problems every time this function has been used in reality so far (#6092 and #6333 ).
2024-11-13 14:55:14 +00:00
86fb041a65
Merge branch 'minor-next' of github.com:pmmp/PocketMine-MP into feat/async-events
2024-11-13 14:46:32 +00:00
09bf203267
Update RuntimeDataDescriber.php
2024-11-12 22:57:14 +00:00
f3cc4a28e1
Easy wins for PHPStan 2.0 support
2024-11-12 22:12:54 +00:00
fe70150db2
Update composer dependencies
2024-11-12 21:47:52 +00:00
054538e6b7
Update PULL_REQUEST_TEMPLATE.md
2024-11-12 17:54:31 +00:00
3586bc42a9
Merge 'stable' into 'minor-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/11802296296
2024-11-12 17:14:24 +00:00
1f86949836
Create CODEOWNERS
2024-11-12 14:37:02 +00:00
053a71c59d
Bump build/php from 084822a
to a51259d
( #6495 )
2024-11-12 14:28:32 +00:00
07d5046b83
5.21.2 is next
...
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/11796630402
2024-11-12 11:48:59 +00:00
4a702b97fd
Prepare 5.21.1 release ( #6493 )
5.21.1
2024-11-12 11:48:01 +00:00
d2c3b8dacb
Fix GC cycle count increases on player disconnect ( #6487 )
2024-11-11 16:10:19 +01:00
fa3529966f
Merge 'stable' into 'minor-next'
...
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/11769186885
2024-11-10 22:56:08 +00:00
2ff6470792
Fixed server crash when applying item cooldown ( #6491 )
...
This commit fixes server crash when applying a cooldown to any item which count is equals to 1.
closes #6490
closes #6488
2024-11-10 19:15:30 +00:00
05a9e9c76e
Implemented sound when drinking a potion ( #6444 )
2024-11-10 15:07:18 +00:00
231eec911f
Enchanted Golden Apple: Regeneration 5 => 2 matching Java ( #6445 )
2024-11-09 19:43:30 +00:00
8c04d47b1b
Make weakness effect only applicable for melee damage ( #6489 )
2024-11-09 19:18:30 +00:00
b3b8aaddff
Bump docker/build-push-action from 6.8.0 to 6.9.0 ( #6465 )
2024-11-04 16:29:01 +00:00
2173aab967
Bump thollander/actions-comment-pull-request from 2 to 3 ( #6482 )
2024-11-04 16:05:38 +00:00
e598364f06
5.21.1 is next
...
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/11652565588
2024-11-03 15:30:16 +00:00
734ca1cc6b
Merge pull request #6480 from pmmp/minor-next
...
5.21.0
5.21.0
2024-11-03 15:29:06 +00:00
96b12bddc1
Prepare 5.21.0 release
2024-11-03 15:24:43 +00:00
84464cde4f
Update BedrockBlockUpgradeSchema
2024-11-03 14:44:50 +00:00
72fc138631
Regenerate PHPStan baselines
2024-11-03 14:43:34 +00:00
c63d0ef1b6
Fix dodgy ignored PHPStan error
2024-11-03 14:43:34 +00:00
82c416624d
Merge pull request #6416 from pmmp/blockstate-schema-generator-improvements
...
Blockstate schema generator improvements
2024-11-03 14:10:38 +00:00