15280 Commits

Author SHA1 Message Date
Dylan K. Taylor
236fa062f0 Prepare 5.34.0 release 2025-09-26 15:48:55 +01:00
Dylan K. Taylor
5ca8e15027 tidy 2025-09-25 18:18:33 +01:00
Dylan T.
3336cda34a First pass ext-encoding support (high-level network I/O and read-only data) (#6799)
This implements ext-encoding only in high-level network I/O (only BedrockProtocol and stuff implemented in PM) and read-only data.
This should net a significant performance advantage while being low-risk in the case of critical issues with the extension. Any problems affecting protocol won't do permanent damage while being fairly easy to debug.

Next passes will integrate ext-encoding versions of RakLib, RakLibIpc and NBT, as well as generally using ext-encoding for writeable data.
2025-09-25 17:32:38 +01:00
pmmp-admin-bot[bot]
8b70456669 Merge 'stable' into 'minor-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/17959045221
2025-09-23 21:05:48 +00:00
Dylan K. Taylor
45698e4bb9 SendUsageTask: fixed php_uname() call with invalid mode
this now throws in PHP 8.4. Previously it returned the same as php_uname(a).
Presumably the intent was to capture the CPU arch and not a repeat of the machine field.

closes #6811
2025-09-23 13:07:47 +01:00
Dylan T.
31f4b496a1 Implement new OpenID authentication system (#6798)
Co-authored-by: Dries C <15795262+dries-c@users.noreply.github.com>
2025-09-20 22:40:38 +01:00
IvanCraft623
ebeee29a88 Implement firework rocket & firework star (#5455)
Co-authored-by: Dylan T <dktapps@pmmp.io>
Co-authored-by: ipad54 <63200545+ipad54@users.noreply.github.com>
2025-09-20 18:04:05 +01:00
Dylan K. Taylor
dd9cbb74f0 Added NeverSavedWithChunkEntity interface
closes #6809

turns out we can actually use this for players too.
we need this also for fireworks and probably lightning in the future.
2025-09-20 00:01:16 +01:00
Dylan K. Taylor
bbcc0c08b5 Updated NBT library to get new ListTag handling features 2025-09-19 23:40:04 +01:00
IvanCraft623
6d2d23a210 Implement Trident (#4547)
Co-authored-by: Dylan T. <dktapps@pmmp.io>
2025-09-18 19:00:55 +01:00
Dylan K. Taylor
7d50c9d146 Merge branch 'stable' of github.com:pmmp/PocketMine-MP into minor-next 2025-09-17 01:38:53 +01:00
pmmp-admin-bot[bot]
40a1a29f0d 5.33.3 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/17748879758
2025-09-15 22:54:12 +00:00
Dylan T.
1e797b9897 Prepare 5.33.2 release (#6804) 2025-09-15 23:53:05 +01:00
Dylan K. Taylor
a056af1617 Update composer dev dependencies 2025-09-15 22:41:02 +01:00
Dylan K. Taylor
b237cacfc9 InGamePacketHandler: don't resync blocks if the client predicted an interact fail
if the prediction was a fail, we can assume that the client didn't do anything visual on its end,
which avoids the need to resend blocks.
This fixes block lag when towering as discussed in #6803.

The more general issue in #6803 remains unresolved (that the server's block resyncing may overwrite
additional client side predictions if it places a block before the server's resync for the initial
placement arrives), but that's more complicated to fix and I'm not convinced on the correct method
to resolve it yet.

In any case, this change nets a decent improvement for everyone, regardless.
2025-09-15 19:36:29 +01:00
Dylan K. Taylor
e7ad3c25fa InGamePacketHandler: ignore CREATIVE_PLAYER_DESTROY_BLOCK
fixes #6757

we get PREDICT_DESTROY_BLOCK anyway, so it's not needed
2025-09-15 18:02:10 +01:00
Dylan K. Taylor
c6a28d8df0 InventoryManager: fixed window sending getting stuck on client rejecting window opening
closes #6778

honestly, we could just stop checking the window ID entirely, considering the need for delaying and waiting
for window close acks, it seems useless at this point...
2025-09-15 17:34:35 +01:00
Dylan K. Taylor
e47c189cb6 Add support for private timings pasting 2025-09-14 18:01:33 +01:00
Dylan K. Taylor
c854f2c765 ItemSerializer: avoid slow NBT check
hasNamedTag() rebuilds the NBT from item properties to decide if there's any NBT.
This is a waste of resources when we then fetch the tag to encode anyway.
2025-09-10 20:06:35 +01:00
Dylan K. Taylor
54e8ad2a9c Update BedrockProtocol 2025-09-10 16:21:29 +01:00
Dylan K. Taylor
26cd5c471c Merge branch 'stable' into minor-next 2025-09-04 22:03:22 +01:00
Dylan K. Taylor
1868536916 Add PHP 8.4 to test matrix 2025-09-04 21:58:12 +01:00
Darya Markova
3999a1f9f4 Fix sneaking hitbox height (#6771) 2025-09-03 08:53:32 +02:00
Dylan T.
fa5cc3301c Strip unnecessary NBT from network items (#6790)
TypeConverter: Strip unnecessary NBT from clientbound items
Item containers like shulker boxes, or chests with block entity data obtained with ctrl+middle click, will often have extremely large NBT payloads.
This problem gets exponentially worse in cases where it's possible to nest inventories, as in #4665.

We can't easily address this at the core level, because tiles are not able to exist within items (due to position requirement)
so we don't have a good way to avoid this useless NBT in the first place. However, we can strip it before the item is sent to
the client, which dramatically reduces the network costs of such items, as well as removing any reason the client could have
to send such enormous items to the server.

A fully loaded shulker box with written books now takes only 5-6 KB on the wire instead of ~1 MB, which is a substantial improvement.

Dealing with this in a less hacky way is currently blocked on #6147.
2025-09-02 18:36:00 +01:00
Dylan T.
b2d0be5b75 Support editing the back side of signs (#6774)
* Deprecate BaseSign get/set/updateText(), add get/set/updateFaceText() which accepts true/false for front/back
* add isFrontFace() to SignChangeEvent
* add optional frontFace to Player::openSignEditor()
* add BaseSign::getFacingDegrees() and getHitboxCenter() which need to be implemented by subclasses
2025-09-01 17:15:29 +01:00
pmmp-admin-bot[bot]
d3c36e6287 Merge 'stable' into 'minor-next'
Automatic merge performed by: https://github.com/pmmp/RestrictedActions/actions/runs/17364003235
2025-09-01 00:03:50 +00:00
Dylan K. Taylor
e569cc3275 stfu 2025-08-31 21:47:49 +01:00
Dylan K. Taylor
c931437a30 InventoryTransaction: Remove action shuffling
we used to have this to prevent dependence on client ordering, and make ordering consistently not work.
However, since the introduction of the ItemStackRequest protocol, we don't expect to see client actions
in the wrong order anymore, so this shouldn't be needed anymore.

closes #6701
2025-08-31 21:45:55 +01:00
pmmp-admin-bot[bot]
09cc76ae2b 5.33.2 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/17351431906
2025-08-31 02:28:17 +00:00
Dylan T.
a540de1e3c Prepare 5.33.1 patch release (#6784) 2025-08-31 03:27:21 +01:00
Dylan K. Taylor
9eee1a9a6e Banner: don't bail on missing type tags
we didn't set these prior to 5.33.0, so these won't be present on older worlds.
2025-08-31 03:22:58 +01:00
pmmp-admin-bot[bot]
f673159471 5.33.1 is next
Commit created by: https://github.com/pmmp/RestrictedActions/actions/runs/17346780638
2025-08-30 17:46:07 +00:00
Dylan T.
831c5a0464 Merge pull request #6783 from pmmp/r5.33.0
Release 5.33.0
2025-08-30 18:45:11 +01:00
Dylan K. Taylor
f1b1e1977e Harden validation for server auth block breaking 2025-08-29 20:37:29 +01:00
Dylan K. Taylor
8f7e16a9ad Prepare 5.33.0 release 2025-08-29 14:11:50 +01:00
Dylan K. Taylor
beaedc3627 Tidy up in block properties aisle 2025-08-29 13:07:09 +01:00
Dylan K. Taylor
48ba334218 CS again :< 2025-08-29 12:33:50 +01:00
Dylan K. Taylor
0be15a7403 Rename MultiFacing -> MultiAnyFacing
to match the trait name
2025-08-29 12:33:04 +01:00
Dylan K. Taylor
2404d63b1f Ageable: added getMaxAge()
we'll probably need this...
2025-08-29 12:24:24 +01:00
Dylan K. Taylor
dd9030f1f5 tools/generate-bedrock-data-from-packets: generate less noise for items
if we have only a name (the majority case), we can just return the name directly instead of an object.
this massively reduces the amount of noise in the files as seen in pmmp/BedrockData@f814036229
2025-08-28 21:15:09 +01:00
Dylan K. Taylor
de234d1f38 Improved placement logic 2025-08-26 00:10:50 +01:00
ipad54
db54c481aa Fixed hanging signs placement criteria (#6775) 2025-08-25 23:27:17 +01:00
ipad54
ac2c07c3fe Added a space after hanging sign wood type (#6776) 2025-08-25 17:00:41 +01:00
Dylan K. Taylor
ec56d65bcc Fix BC break in BaseBanner 2025-08-25 02:17:45 +01:00
Dylan K. Taylor
c548923116 ... 2025-08-25 02:16:38 +01:00
Dylan K. Taylor
4a2c7dc684 Apparently hanging signs are self supporting 2025-08-25 02:15:24 +01:00
Dylan K. Taylor
f04c458e54 Merge branch 'stable' into minor-next 2025-08-25 01:49:19 +01:00
Dylan K. Taylor
5c0a109f18 Sign: Strip trailing newlines from text blobs
fixes sign editor always putting the cursor on the last line when right-clicking to edit
2025-08-25 01:48:29 +01:00
Dylan K. Taylor
31f6f5d252 CS again 2025-08-24 20:13:15 +01:00
Dylan K. Taylor
00d6171463 Implement hanging signs 2025-08-24 20:07:59 +01:00