dependabot-preview[bot]
5c3e78e1d3
Bump phpstan/phpstan from 0.12.74 to 0.12.75 ( #4033 )
2021-02-12 14:58:01 +00:00
Dylan K. Taylor
18666e5a60
Be compatible with newest versions of php-leveldb
2021-02-11 22:33:29 +00:00
Dylan K. Taylor
f72163c173
Fixed build not failing when PHP build gets borked
2021-02-11 17:06:03 +00:00
Dylan K. Taylor
7407e504b6
actions: bump PHP versions to 7.3.27 and 7.4.15
2021-02-11 16:35:19 +00:00
Dylan K. Taylor
0e396dc47d
actions: update PHP extension versions
2021-02-11 16:24:09 +00:00
Dylan K. Taylor
d2204da1d5
[ci skip] center the build badges
2021-02-11 16:05:55 +00:00
Dylan K. Taylor
2a51269305
Merge branch 'stable' of https://github.com/pmmp/pocketmine-mp into stable
2021-02-11 16:05:24 +00:00
dependabot-preview[bot]
928041ddf1
Bump phpstan/phpstan from 0.12.71 to 0.12.74 ( #4028 )
...
Bumps [phpstan/phpstan](https://github.com/phpstan/phpstan ) from 0.12.71 to 0.12.74.
- [Release notes](https://github.com/phpstan/phpstan/releases )
- [Commits](https://github.com/phpstan/phpstan/compare/0.12.71...0.12.74 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-08 21:42:08 +00:00
Dylan T
007f4f9350
CraftingDataPacket: Remove useless @var comment
2021-02-08 11:53:50 +00:00
Dylan K. Taylor
46e9f0cec6
Player: fixed verify-xuid not kicking in by default on old configs
2021-02-07 21:10:23 +00:00
Dylan K. Taylor
606d56b55d
Composer: lock in PHP at ^7.3 || ^8.0, don't leave it unbounded
2021-02-07 17:31:32 +00:00
Dylan K. Taylor
78a62a8b27
Remember and verify player XUIDs (controlled by player.verify-xuid in pocketmine.yml)
2021-02-05 14:42:57 +00:00
Dylan K. Taylor
c5bdd7dd64
Added a unit test to ensure valid format of MINECRAFT_VERSION_NETWORK
2021-02-04 22:36:40 +00:00
dependabot-preview[bot]
8ee37a3033
Bump phpunit/phpunit from 9.5.1 to 9.5.2 ( #4023 )
2021-02-04 16:46:22 +00:00
Dylan K. Taylor
7e3e63f342
Fixed race condition in MainLogger shutdown
...
this resulted in a deadlock in https://github.com/pmmp/PocketMine-MP/runs/1831812620?check_suite_focus=true because the notify() arrived while writeLogStream() was executing.
This ensures that either:
- the notification will occur before the sleep, and therefore no sleeping will occur (this->shutdown = true before the wait)
- the notification will arrive during the sleep.
2021-02-04 16:40:10 +00:00
Dylan K. Taylor
8ef1e54e20
MainLogger: fixing CPU waste on logger thread
...
this doesn't need to keep spinning every 25ms; it can just wake up when there's actually log messages to write into the buffer.
2021-02-04 15:07:40 +00:00
Dylan K. Taylor
eaf3a86981
MainLogger: fixed UB in writeLogStream()
...
notify() has to be used inside a synchronized block.
2021-02-04 15:03:14 +00:00
Dylan K. Taylor
317a48d9b0
ItemStackRequest: expose filterStrings
2021-02-03 23:40:34 +00:00
Dylan K. Taylor
bc14660e55
Added missing ItemStackRequest protocol changes
2021-02-03 23:37:41 +00:00
Dylan K. Taylor
b1bb9fbd1c
Reinstall PHP deps on cache hit
...
the 20.04 actions image doesn't have libzip5 and who knows what else is missing ...
2021-02-03 17:42:11 +00:00
Dylan T
96181f8cf5
Version PHP build caches by image version
...
we can't safely use `ubuntu-latest` because the build caches will break if they were built for 18.04 and used on 20.04, or vice versa. Instead, we pin the images (and caches) to a specific version.
2021-02-03 17:24:50 +00:00
Dylan K. Taylor
4771e3dc28
3.17.5 is next
2021-02-02 14:04:51 +00:00
Dylan K. Taylor
2e9117d102
Release 3.17.4
3.17.4
2021-02-02 14:04:50 +00:00
Dylan K. Taylor
06493da7d9
Imports cleanup
2021-02-02 13:58:07 +00:00
Dylan K. Taylor
bd303b1062
RegionLoader: fixed flaky region header validation since 3.17.3
2021-02-02 13:43:52 +00:00
Dylan K. Taylor
fe731b9018
Added failing test case for region header validation
...
fucking PHP... what genius thought it was a good idea to cache file stats without even an attempt at keeping the cache up to date on modifications?
2021-02-02 13:43:12 +00:00
Dylan K. Taylor
1a24afc6d1
InventoryTransaction: Fixed indexes persisting from balance calculation in crafting input/outputs
...
fixes #4019
the order of the actual items may not be the same across runs, but index 0 will at least be sure to exist.
2021-02-02 00:13:58 +00:00
Dylan K. Taylor
bef906b0f0
phpstan 0.12.71
2021-02-02 00:05:53 +00:00
yuko fuyutsuki
37e8dd6444
Fix PHP 8 optional before required parameters deprecation warnings ( #4016 )
2021-01-31 12:08:47 +00:00
Dylan T
02ee0f23c0
Removed old support requests configuration
2021-01-27 22:53:37 +00:00
Dylan T
cda472333c
Add workflow for dessant/support-requests
...
we're using the legacy github app right now.
2021-01-27 22:47:33 +00:00
Dylan K. Taylor
47cf58be8a
phpstan 0.12.70
2021-01-27 20:11:37 +00:00
dependabot-preview[bot]
ccf9691927
Bump phpunit/phpunit from 9.5.0 to 9.5.1 ( #4010 )
2021-01-27 19:28:36 +00:00
Dylan K. Taylor
16fa958416
phpstan: better hack for any-callable parameters
...
variadics are a bad fit for this because what we really need is to accept callable with any number of arguments. LSP requires that the provided number of arguments must be >= than the required number of arguments.
2021-01-27 19:25:28 +00:00
Dylan K. Taylor
bac57c159f
Player: fix bridging, towering and various other fast building bugs
...
clickPos is relative to the base block position, so if you keep aiming at the same spot on the block and jump, it thinks you're still spamming.
closes #2730
2021-01-27 00:11:14 +00:00
Dylan K. Taylor
38b2d83799
MemoryManager: fixed protected properties being dumped multiple times
...
we don't need to scan the parent classes for anything other than private properties, because protected and public properties will appear on the main reflection as if they were declared directly as such.
2021-01-26 20:32:23 +00:00
Dylan T
c134b1cd8a
[ci skip] README: add some badges
2021-01-26 17:34:05 +00:00
Dylan K. Taylor
62deafda48
CommandReader: removed readline support
...
readline has been borked for a long time and it's not thread safe.
2021-01-25 17:53:25 +00:00
Dylan K. Taylor
31b6df4376
3.17.4 is next
2021-01-25 17:15:43 +00:00
Dylan K. Taylor
b296ae1b87
Release 3.17.3
3.17.3
2021-01-25 17:15:31 +00:00
Dylan K. Taylor
f9e42b716a
Scrub PHPStan baselines
...
these are now always generated with level 8.
2021-01-24 20:31:22 +00:00
Dylan K. Taylor
34c1d455a7
phpstan: enable checkMissingCallableSignature
2021-01-24 20:27:53 +00:00
Dylan K. Taylor
af8936dba5
phpstan 0.12.69
2021-01-24 20:14:42 +00:00
Dylan K. Taylor
e8ffab1787
RegionLoader: avoid hitting the disk twice during chunk reads
...
this provides some performance improvement (although it's difficult to measure because of cache).
this does mean that we read some garbage data during chunk reads, but it's less costly than hitting the disk twice.
2021-01-20 21:05:44 +00:00
Dylan K. Taylor
ecc1e1f698
RegionLoader: improve performance of region header validation
...
I was unaware that fseek actually makes a syscall which is rather costly, which became painfully obvious during large world conversions on PM4.
On average this problem appeared to be adding about 5ms to the load time for a newly loaded region, which is insanely expensive.
2021-01-20 20:04:21 +00:00
Dylan K. Taylor
ea5931e274
Updated build/php submodule to pmmp/php-build-scripts@60194e8b14
2021-01-16 19:34:06 +00:00
Dylan K. Taylor
988cf7f535
Fixed PHP 8.0 deprecation error
2021-01-16 19:31:07 +00:00
Dylan T
e156fb47e8
Disable xdebug on Actions
2021-01-15 21:09:45 +00:00
Dylan T
efc5f34877
wrong place ... when shared defaults :(
2021-01-15 17:53:39 +00:00
Dylan K. Taylor
dd0d8842d5
actions: disable fail-fast
2021-01-15 17:35:27 +00:00