Dylan K. Taylor
af88f49a21
3.18.3 is next
2021-04-07 18:32:14 +01:00
Dylan K. Taylor
599d5253db
Release 3.18.2
3.18.2
2021-04-07 18:32:10 +01:00
Dylan K. Taylor
54cb5ee0fa
ItemTranslator: ensure that the correct meta value is returned after translation
...
-1 is a PM-specific thing. Right now there is a hack in the NetworkBinaryStream which prevents this from becoming a problem, but that might not be the case in future.
2021-04-07 13:10:29 +01:00
Jitendra Adhikari
cdae8b42eb
Bump adhocore/json-comment to ^1.1.0, new version strips trailing comma as well ( #4146 )
2021-04-06 11:58:23 +01:00
Ali
a45a4a91ae
Call InventoryCloseEvent in Player::removeWindow() ( #4142 )
...
closes #4130
2021-04-04 01:07:58 +01:00
Dylan K. Taylor
21378b7f27
Regenerate PHPStan baselines
...
this should be the last time we get baselines randomly rearranging themselves on changes ...
2021-04-03 22:36:15 +01:00
Dylan K. Taylor
502aed41b0
phpstan 0.12.83
2021-04-03 22:34:48 +01:00
Dylan K. Taylor
125837324f
Player: don't dump cursor contents on mouseover interaction
...
this can fire while the player has the inventory window open, because it also gets sent when the player swaps their held itemstack for something new.
We already had a special-case for mouseover with entity ID 0, but since
this isn't just a zero problem, a more general fix suits better
(particularly since we might need to handle the 0 case anyway).
closes #4140
closes #4141
2021-04-02 21:35:38 +01:00
Ali
609dff1aae
Player: Revert invalid attempts to toggle flight, instead of kicking ( #4139 )
...
If allowFlight was toggled by the server (e.g. due to gamemode change), a race could occur due to network latency where the client could try to enable flight, and then get kicked for cheating.
Since this can happen in legitimate, non-cheating cases, we can't make any assumptions about whether a player is cheating, so instead we just revert it, like we do with every other bad input.
2021-04-01 17:57:26 +01:00
Dylan K. Taylor
b03212053c
3.18.2 is next
2021-03-28 21:24:07 +01:00
Dylan K. Taylor
fd4ac885bb
Release 3.18.1
3.18.1
2021-03-28 21:24:03 +01:00
Dylan K. Taylor
f35886f18a
Updated composer dependencies
2021-03-28 21:14:02 +01:00
Dylan K. Taylor
a9eaa55427
actions: added a php-cs-fixer run
2021-03-28 20:38:56 +01:00
Dylan K. Taylor
5c41f79be4
Added php-cs-fixer configuration
...
this is by no means a complete code style guide, but it fixes a lot of common issues that show up, particularly in PRs.
2021-03-28 19:21:41 +01:00
Dylan K. Taylor
34c2b62ffe
Remove unused import
2021-03-28 19:12:18 +01:00
Dylan K. Taylor
e42a691da9
Strip trailing whitespace
2021-03-28 19:02:51 +01:00
Ali
3b3fb5e662
fix ItemFrames ( #4101 )
...
removing items from item frames was broken due to behavioural changes in 1.16.210.
2021-03-28 18:53:46 +01:00
Dylan K. Taylor
01ffe8bf57
Updated build/php submodule to pmmp/php-build-scripts@c64baa0f1c
2021-03-28 18:14:40 +01:00
Dylan K. Taylor
4abf4aecad
MainLogger: fixed potential deadlock during syncFlushBuffer()
...
the notify() to flush the buffer might arrive in between the writeLogStream() and synchronized() calls in the thread body, resulting in a deadlock if the logger thread managed to call wait() before the main thread did.
2021-03-28 18:10:23 +01:00
Dylan K. Taylor
b29f83ee99
Added preprocessor test build job to Actions
...
this should catch problems like the one that broke 3.17.6 at the root.
2021-03-25 01:25:04 +00:00
Dylan K. Taylor
4bc57f00b8
Updated LevelSoundEventPacket constants
2021-03-23 23:36:48 +00:00
Dylan K. Taylor
ff61e1e018
ClientCacheBlobStatusPacket: fixed field order
...
miss comes first, not hit.
2021-03-23 19:52:25 +00:00
Dylan K. Taylor
fb20bb3832
Don't handle NAN/INF in movements
2021-03-23 14:54:39 +00:00
dependabot-preview[bot]
3333df31df
Bump phpunit/phpunit from 9.5.3 to 9.5.4 ( #4104 )
...
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit ) from 9.5.3 to 9.5.4.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases )
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-9.5.md )
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.5.3...9.5.4 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-23 13:53:45 +00:00
Dylan K. Taylor
c09fcb2df2
Merge branch 'stable' of github.com:pmmp/PocketMine-MP into stable
2021-03-22 21:22:56 +00:00
Dylan K. Taylor
c7cdaeae85
Revert "Backport InventoryTransactionPacket impl from PM4"
...
This reverts commit cb06be615aa3780d4c83a947520fa55c0d908618.
we can't push this to stable because it would break plugins without any
way to know (no protocol or API change).
At most, this should have been wrapped into a protocol change.
2021-03-22 21:21:11 +00:00
dependabot-preview[bot]
4416cd5a28
Bump phpstan/phpstan from 0.12.81 to 0.12.82 ( #4088 )
...
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan ) from 0.12.81 to 0.12.82.
- [Release notes](https://github.com/phpstan/phpstan/releases )
- [Commits](https://github.com/phpstan/phpstan/compare/0.12.81...0.12.82 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-22 13:26:07 +00:00
Dylan T
cb93095857
[ci skip] readme: added link to devdoc.pmmp.io
2021-03-21 16:59:58 +00:00
Dylan T
c8f396ecbc
[ci skip] doxygen: link to devdoc.pmmp.io instead of the github repo
2021-03-21 16:56:23 +00:00
Dylan K. Taylor
cb06be615a
Backport InventoryTransactionPacket impl from PM4
...
this version is far better, and we're going to need it to deal with the PlayerAuthInputPacket bullshit.
2021-03-19 22:16:30 +00:00
Dylan K. Taylor
0d3c11699c
Clean up PHPStan baselines
2021-03-19 22:14:07 +00:00
Dylan K. Taylor
3667e95ff6
Added PlayerAuthInputFlags
2021-03-19 21:41:22 +00:00
Dylan K. Taylor
0e2dc51ec8
added some missing things to the protocol
2021-03-19 21:09:53 +00:00
mmm545
eaf85b028a
fix prebuilt binaries link ( #4090 )
2021-03-19 20:42:21 +00:00
dependabot-preview[bot]
9479a1a0ab
Bump phpunit/phpunit from 9.5.2 to 9.5.3 ( #4084 )
...
Bumps [phpunit/phpunit](https://github.com/sebastianbergmann/phpunit ) from 9.5.2 to 9.5.3.
- [Release notes](https://github.com/sebastianbergmann/phpunit/releases )
- [Changelog](https://github.com/sebastianbergmann/phpunit/blob/master/ChangeLog-9.5.md )
- [Commits](https://github.com/sebastianbergmann/phpunit/compare/9.5.2...9.5.3 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-03-17 14:08:44 +00:00
Dylan K. Taylor
1bb2d162ab
Simplify CommandReader
...
while stream_select() doesn't work on pipes, if it ever starts working properly in the future, we'll need this code. In the meantime, it's harmless (it just immediately returns 1 anyway).
2021-03-16 21:42:35 +00:00
Nick
ee868bcccc
update argument type constants ( #4082 )
2021-03-15 18:22:01 +00:00
Yosshi999
cbc8576d4a
Implement UPnP support without dotNET ( #3378 )
...
UPnP forwarding is now available on all supported platforms.
com_dotnet is no longer required for UPnP forwarding to work.
Closes #3216 .
2021-03-14 22:50:33 +00:00
Dylan K. Taylor
edcf296086
RakLibInterface: fixed server being unjoinable if gamemode is Spectator
...
closes #4069
this happens because the client bans any server that has an invalid pong, which is very stupid in this case because the gamemode isn't even shown on the UI anyway ...
2021-03-14 20:35:17 +00:00
Dylan K. Taylor
9e27c47116
Merge branch 'stable' of github.com:pmmp/PocketMine-MP into stable
2021-03-12 22:08:20 +00:00
Dylan K. Taylor
a0368a843e
3.18.1 is next
2021-03-12 22:07:01 +00:00
Dylan K. Taylor
3f64906263
Release 3.18.0
3.18.0
2021-03-12 22:07:01 +00:00
Dylan K. Taylor
19bb8a00df
Updated PHPStan baselines
2021-03-12 22:05:15 +00:00
Dylan K. Taylor
4816a66fb8
Baseline protocol changes for 1.16.210
...
this is not a complete changeset, but it's sufficient to get servers back online.
There are additional changes to PlayerAuthInputPacket which need to be reversed.
2021-03-12 21:41:48 +00:00
dependabot-preview[bot]
06f4e1e4c2
Bump phpstan/phpstan from 0.12.80 to 0.12.81 ( #4063 )
2021-03-11 00:33:05 +00:00
Dylan K. Taylor
5b8166c1f0
3.17.8 is next
2021-03-11 00:22:17 +00:00
Dylan K. Taylor
30c5cad5b3
Release 3.17.7
3.17.7
2021-03-11 00:22:17 +00:00
Dylan K. Taylor
a7a7fe3895
Merge branch 'stable' of github.com:pmmp/PocketMine-MP into stable
2021-03-11 00:15:48 +00:00
Dylan K. Taylor
55ac2f07dc
Updated PreProcessor submodule to pmmp/PreProcessor@1b9304de61
2021-03-11 00:15:33 +00:00
Dylan K. Taylor
0660888029
Updated NBT dependency (again)
2021-03-11 00:15:00 +00:00