237677c028
Bump phpstan/phpstan from 1.11.2 to 1.11.8 in the development-patch-updates group ( #6410 )
2024-07-30 06:47:56 +00:00
db665fefdb
Harden JsonMapper defaults in general
2024-02-23 14:10:24 +00:00
515f8eae4c
ÂResourcePackManager: allow setting force_resources from a plugin
2023-08-07 17:05:45 +01:00
c89df7eb1c
Merge remote-tracking branch 'origin/next-minor' into next-major
2022-12-25 18:22:13 +00:00
0d169b4e80
Filesystem: added fileGetContents to reduce ErrorToExceptionHandler boilerplate code
2022-12-25 17:13:51 +00:00
ffa88aff67
Merge branch 'next-minor' into next-major
2022-12-18 21:05:26 +00:00
8c0d3943d8
Added length validation for resource pack encryption keys
2022-12-15 22:36:06 +00:00
d02c6668b2
ResourcePackManager: added setPackEncryptionKey()
...
this allows plugins to install their own encrypted resource packs
2022-12-15 22:29:34 +00:00
880d01daea
ResourcePackManager: added setResourceStack()
...
this enables plugins to modify the resource pack stack however they see fit.
Modifying the existing stack can be done by doing array modifications on the result of getResourceStack() and then setting it back again using this method.
2022-12-15 22:10:53 +00:00
50b70708fb
ResourcePackManager: extracted loadPackFromPath() private method from constructor body
2022-12-15 21:59:54 +00:00
4d79aced07
Merge branch 'next-minor' into next-major
2022-12-15 19:50:27 +00:00
99996b62d6
Align PhpDoc @param tags according to PHP-CS-Fixer
2022-12-06 13:21:20 +00:00
7bcc663b60
Migrate core code to using symfony/filesystem
...
webmozart/path-util is retained for plugin compatibility, but is dropped in 5.0
2022-10-14 21:51:29 +01:00
f88ae93897
BC break: Replaced webmozart/path-util with symfony/filesystem, closes #5332
2022-10-13 16:43:36 +01:00
1c6a2b66f7
Merge remote-tracking branch 'origin/next-minor' into next-major
2022-09-29 22:38:26 +01:00
d6bbf8217d
ResourcePackManager: avoid repeated operation
2022-09-28 20:57:17 +01:00
b21cd82e94
Allow specifying a key for encrypted resource packs ( #5297 )
2022-09-28 17:27:33 +01:00
aa9f8781ff
Merge branch 'next-minor' into next-major
2022-06-07 19:56:26 +01:00
083a35f970
Modernize property type declarations
2022-06-04 18:16:32 +01:00
38d6284671
Use PHP-CS-Fixer to enforce file header presence
2022-06-04 17:34:49 +01:00
9e59819f06
Modernize private property declarations in src/resourcepacks
2022-05-17 21:52:07 +01:00
52e3f1e269
ZippedResourcePack: ensure non-empty file
...
ZipArchive raises deprecation errors on empty files for some reason
2022-04-17 20:32:23 +01:00
7ddd547190
Merge remote-tracking branch 'origin/stable' into staging/4.1
2022-02-06 23:55:52 +00:00
38e34093cf
ResourcePackManifest: Stop throwing exceptions on extra properties ( #4804 )
...
This code currently throws errors when properties other than the base required ones are added. This can be from resource packs created by "bridge.", where the IDE adds a "generated_with" property to the manifest. This leads to resource packs created by bridge., which are otherwise completely valid, not being loaded.
2022-02-06 23:22:22 +00:00
4e956d5d1d
Replace remaining disallowed operators
2022-01-20 19:23:19 +00:00
889d048ca3
Make use of Utils::assumeNotFalse() in a bunch of places
...
I've stuck to only doing this in the places where I'm sure we should never get false back. Other places I'm less sure of (and I found more bugs along the way).
2021-12-08 19:39:04 +00:00
f827a555d5
Merge branch 'stable'
2021-11-01 18:13:24 +00:00
349f37b15f
resource packs: manifest may also contain a list of dependencies
...
... which we should be verifying the presence of, as the server.
2021-10-01 21:14:28 +01:00
afa3349c04
Acknowledge the presence of capabilities field in resource pack manifest
...
closes #4485
2021-10-01 21:09:53 +01:00
17c7e25346
resourcepacks: use typed properties in JSON models
2021-08-19 16:12:04 +01:00
32d7b1e6af
Start using webmozart/pathutil for joining paths ( #4287 )
2021-06-29 19:40:43 +01:00
02a4f0a170
Mark metadata as nullable in resource pack manifest data
...
if the metadata isn't provided, it won't be initialized during decoding.
2021-01-27 22:05:43 +00:00
07dc0f2dd5
resource packs: added metadata to manifest models
2020-12-01 23:37:36 +00:00
b40720749b
ZippedResourcePack: improved exception error on invalid manifest contents
2020-11-28 18:29:13 +00:00
3e2cfd28cc
ResourcePackManager: change validity check to is_string()
2020-07-17 23:07:37 +01:00
5f70b96081
ResourcePack: do not export getPath()
...
a resource pack is not required to come from a location on disk (although it's currently the only practical option).
2020-07-17 23:03:10 +01:00
5e0d635562
Resource packs: modules field is required in manifest.json
2020-06-21 23:19:15 +01:00
a920baa295
resource packs: use JsonMapper for manifest parsing
2020-06-21 18:47:27 +01:00
4520660025
Merge commit 'f3e436592a180c8d4fbcd346a97abdd746056c38'
...
# Conflicts:
# resources/vanilla
2020-05-18 10:30:55 +01:00
fb1126797a
Merge branch 'stable'
2020-02-07 18:13:55 +00:00
055b13a6cf
strip extra blank lines (php-cs-fixer)
2020-01-22 15:14:10 +00:00
67bcc1c0fb
phpdoc armageddon for master, pass 1
2020-01-22 11:55:03 +00:00
4651bcf8c3
master: imports cleanup
...
it was easier to make an empty merge and re-run php-cs-fixer afterwards.
2019-12-11 23:23:03 +00:00
15694279c7
Merge branch 'stable'
2019-09-18 13:30:58 +01:00
d87b6f9ff7
Remove resource pack packets dependency on ResourcePack, now supports decoding
2019-08-08 19:36:54 +01:00
5499ac620c
Removed pocketmine subdirectory, map PSR-4 style
2019-07-30 19:14:57 +01:00