Dylan K. Taylor
9e59819f06
Modernize private property declarations in src/resourcepacks
2022-05-17 21:52:07 +01:00
Dylan K. Taylor
52e3f1e269
ZippedResourcePack: ensure non-empty file
...
ZipArchive raises deprecation errors on empty files for some reason
2022-04-17 20:32:23 +01:00
Dylan K. Taylor
7ddd547190
Merge remote-tracking branch 'origin/stable' into staging/4.1
2022-02-06 23:55:52 +00:00
Shaheryar Sohail
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
Dylan K. Taylor
4e956d5d1d
Replace remaining disallowed operators
2022-01-20 19:23:19 +00:00
Dylan K. Taylor
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
Dylan K. Taylor
f827a555d5
Merge branch 'stable'
2021-11-01 18:13:24 +00:00
Dylan K. Taylor
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
Dylan K. Taylor
afa3349c04
Acknowledge the presence of capabilities field in resource pack manifest
...
closes #4485
2021-10-01 21:09:53 +01:00
Dylan K. Taylor
17c7e25346
resourcepacks: use typed properties in JSON models
2021-08-19 16:12:04 +01:00
Dylan T
32d7b1e6af
Start using webmozart/pathutil for joining paths ( #4287 )
2021-06-29 19:40:43 +01:00
Dylan K. Taylor
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
Dylan K. Taylor
07dc0f2dd5
resource packs: added metadata to manifest models
2020-12-01 23:37:36 +00:00
Dylan K. Taylor
b40720749b
ZippedResourcePack: improved exception error on invalid manifest contents
2020-11-28 18:29:13 +00:00
Dylan K. Taylor
3e2cfd28cc
ResourcePackManager: change validity check to is_string()
2020-07-17 23:07:37 +01:00
Dylan K. Taylor
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
Dylan K. Taylor
5e0d635562
Resource packs: modules field is required in manifest.json
2020-06-21 23:19:15 +01:00
Dylan K. Taylor
a920baa295
resource packs: use JsonMapper for manifest parsing
2020-06-21 18:47:27 +01:00
Dylan K. Taylor
4520660025
Merge commit 'f3e436592a180c8d4fbcd346a97abdd746056c38'
...
# Conflicts:
# resources/vanilla
2020-05-18 10:30:55 +01:00
Dylan K. Taylor
fb1126797a
Merge branch 'stable'
2020-02-07 18:13:55 +00:00
Dylan K. Taylor
055b13a6cf
strip extra blank lines (php-cs-fixer)
2020-01-22 15:14:10 +00:00
Dylan K. Taylor
67bcc1c0fb
phpdoc armageddon for master, pass 1
2020-01-22 11:55:03 +00:00
Dylan K. Taylor
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
Dylan K. Taylor
15694279c7
Merge branch 'stable'
2019-09-18 13:30:58 +01:00
Dylan K. Taylor
d87b6f9ff7
Remove resource pack packets dependency on ResourcePack, now supports decoding
2019-08-08 19:36:54 +01:00
Dylan K. Taylor
5499ac620c
Removed pocketmine subdirectory, map PSR-4 style
2019-07-30 19:14:57 +01:00