18216 Commits

Author SHA1 Message Date
Dylan K. Taylor
e3d44ea656
Merge branch 'major-next' into inventory-rework 2025-04-30 20:05:56 +01:00
Dylan K. Taylor
ce55183d71
... 2025-04-30 19:52:49 +01:00
Dylan K. Taylor
1245ee2575
Blocks are ephemeral objects, InventoryWindow might exceed its lifetime 2025-04-30 19:44:10 +01:00
pmmp-admin-bot[bot]
8e1426e25e Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14687149888
2025-04-27 01:46:41 +00:00
Dylan K. Taylor
fe70b31881
Fix crash when a player is added to the world 2025-04-26 22:11:03 +01:00
pmmp-admin-bot[bot]
d86943fa8c Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14565559872
2025-04-21 01:45:18 +00:00
pmmp-admin-bot[bot]
cfafb584a8 Merge 'stable' into 'minor-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14565559872
2025-04-21 01:45:17 +00:00
Dylan K. Taylor
ad6f7dfedb
World: verify saveability of blocks, entities and tiles at entry points
I want to do the same for items, but items are going to be a pain in the ass.
For items there are multiple possible entry points and all of them will need to be checked:
- dropped items
- inventory contents
- lecterns
- item frames

I don't see a good way to deal with all these. We can't check for registration in the constructor
because we need to fully construct the item in order to register it.

Blocks are also a potential issue in other areas, but setBlock() is definitely the biggest offender.
2025-04-20 19:48:28 +01:00
Dylan K. Taylor
1ea5c060fd
bruh 2025-04-20 18:16:54 +01:00
Dylan K. Taylor
4a5c1e7540
Entity: truncate fire ticks instead of throwing exceptions
as written in the comments, it's not reasonable to propagate this limitation, since it
ultimately comes from a shortfall in the Mojang save format, not a limitation of PM's
capability. It's also not obvious how this would be propagated to the likes of setOnFire(),
as this would translate into a max time of 1638 seconds, a value no one is going to
remember.

There's a case to be made for truncating this on save rather than on initial set, but
this is at least better than having Fire Aspect level 1000 cause crashes and whatever
other gameplay logic that would have to work around this stupid limitation.
2025-04-20 16:57:44 +01:00
Dylan K. Taylor
2548422973
AvailableEnchantmentRegistry: reject non-string tags
fixes https://crash.pmmp.io/view/12627328
2025-04-20 16:44:23 +01:00
pmmp-admin-bot[bot]
baee0110c7 Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14544397106
2025-04-19 01:36:21 +00:00
zSALLAZAR
028815490e
Add EntityExtinguishEvent (#6671) 2025-04-18 11:19:46 +02:00
pmmp-admin-bot[bot]
5617347949 Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14482870321
2025-04-16 01:41:53 +00:00
pmmp-admin-bot[bot]
a74168953c Merge 'stable' into 'minor-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14482870321
2025-04-16 01:41:52 +00:00
Dylan K. Taylor
f661443ec7
Update Ubuntu base image for GitHub Actions 2025-04-15 16:48:13 +01:00
Dylan K. Taylor
0bbe56beb4
Merge branch 'minor-next' into major-next 2025-04-06 20:01:23 +01:00
Dylan K. Taylor
1073f372f8
Merge branch 'stable' into minor-next 2025-04-06 20:00:45 +01:00
Dylan K. Taylor
835c383d4e
Update Composer dependencies 2025-04-06 20:00:21 +01:00
Dylan K. Taylor
310ca684fa
fix phpstan 2025-04-06 19:26:00 +01:00
Dylan K. Taylor
01c7e2de53
Revert "Shift inventory management responsibility to World"
This reverts commit 40574be3336289a813fda403ee858fb372afe067.
2025-04-06 19:19:36 +01:00
Dylan K. Taylor
d738207478
Revert "Allow blocks to respond to the contents of their containers being updated"
This reverts commit 4850bd5538214642b2e96b3f1b4954b1f21c5cdd.
2025-04-06 19:17:43 +01:00
Dylan K. Taylor
481d6b7f4d
Revert "Remove dodgy code"
This reverts commit 76528b20c11ffcc487ce7be6896fd4e98ccc9e9e.
2025-04-06 19:17:27 +01:00
Dylan K. Taylor
395157c70a
Merge branch 'major-next' into inventory-rework 2025-04-06 19:08:44 +01:00
pmmp-admin-bot[bot]
d3f6c22996 5.27.2 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/14288755593
2025-04-06 03:53:08 +00:00
Dylan T.
6f3851be80
5.27.1 (#6670) 5.27.1 2025-04-06 04:52:15 +01:00
pmmp-admin-bot[bot]
94caea97e0 Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14287788168
2025-04-06 01:43:19 +00:00
Dylan K. Taylor
071c15d7de
NetworkSession: immediate-send now causes a buffer flush when the packet is ready
instead of skipping queues and forcing sync compression as previously seen.

this maintains proper packet order and allows immediate-flush to be used to reduce latency in-game.

Small servers won't notice any difference, but for larger ones it may make a difference, since the buffer time effectively depends on the amount of load RakLib is under.
closes #3325
2025-04-05 17:40:48 +01:00
pmmp-admin-bot[bot]
ad95f392c1 Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14233077278
2025-04-03 01:38:27 +00:00
Muqsit
673b39e2a1
Internet: remove curl_close() call (#6667)
curl_close() has no effect as of php8: https://www.php.net/manual/en/function.curl-close.php
2025-04-02 22:24:50 +01:00
pmmp-admin-bot[bot]
9af3cde03f Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14120132647
2025-03-28 01:37:50 +00:00
pmmp-admin-bot[bot]
17faa19743 Merge 'stable' into 'minor-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14120132647
2025-03-28 01:37:48 +00:00
pmmp-admin-bot[bot]
e88b81a4cb 5.27.1 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/14110940403
2025-03-27 15:49:33 +00:00
Dries C
687112f4cd
5.27.0, Bedrock 1.21.70 support (#6665)
Co-authored-by: Dylan K. Taylor <dktapps@pmmp.io>
5.27.0
2025-03-27 15:48:19 +00:00
pmmp-admin-bot[bot]
72f1391bd9 Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14049692123
2025-03-25 01:38:30 +00:00
pmmp-admin-bot[bot]
644c04bee4 Merge 'stable' into 'minor-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14049692123
2025-03-25 01:38:29 +00:00
dependabot[bot]
c9e85603b0
Bump phpstan/phpstan-strict-rules in the development-patch-updates group (#6664) 2025-03-24 14:43:29 +00:00
pmmp-admin-bot[bot]
a90e5a6aa2 Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14014323991
2025-03-23 01:42:16 +00:00
pmmp-admin-bot[bot]
d954772a20 Merge 'stable' into 'minor-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/14014323991
2025-03-23 01:42:15 +00:00
pmmp-admin-bot[bot]
c80a4d5b55 5.26.1 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/14011298411
2025-03-22 18:33:19 +00:00
Dylan T.
f416cb8902
Merge pull request #6658 from pmmp/minor-next-release 5.26.0 2025-03-22 18:32:15 +00:00
Dylan T.
f123df5e0d
changelog: use more accurate terminology 2025-03-22 18:16:33 +00:00
Dylan K. Taylor
de26ebd124
Prepare 5.26.0 release 2025-03-22 17:59:20 +00:00
pmmp-admin-bot[bot]
df5f87e309 Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/13913481960
2025-03-18 01:37:04 +00:00
pmmp-admin-bot[bot]
6b04bb504f Merge 'stable' into 'minor-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/13913481960
2025-03-18 01:37:03 +00:00
dependabot[bot]
1c6a4bde86
Bump pocketmine/locale-data in the production-patch-updates group (#6656) 2025-03-17 13:20:59 +00:00
pmmp-admin-bot[bot]
510ef94698 Merge 'minor-next' into 'major-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/13878654456
2025-03-16 01:41:31 +00:00
Dylan K. Taylor
c2f8e9365b
BlockStateToObjectDeserializer: check that the returned state is actually registered
if not, this will cause random crashes in core code, which assumes that state IDs found on runtime chunk memory are valid and registered.

this problem exists in other places too, and probably requires a rethink of how we're dealing with this, but for now, this will do as a band-aid.
2025-03-15 20:53:49 +00:00
Dylan K. Taylor
d3f40b7b0c
Merge branch 'minor-next' into major-next 2025-03-15 20:37:37 +00:00
Dylan K. Taylor
4ef21fabab
Merge branch 'stable' into minor-next 2025-03-15 20:37:28 +00:00