Do not apply a resource pack that has already been applied (#1236)

* Do not apply a resource pack that has already been applied

* Throw IllegalStateException in case of applying a resource pack already applied from the API

* Updated some dependencies

* Added support for ServerResourcePackSendEvent resource pack modification
This commit is contained in:
Adrian
2024-02-11 12:00:07 -05:00
committed by GitHub
parent 15897c5258
commit ef861819e3
9 changed files with 93 additions and 32 deletions

View File

@@ -54,8 +54,7 @@ public interface ResourcePackInfo extends ResourcePackRequestLike {
*
* @return the hash if present or null otherwise
*/
@Nullable
byte[] getHash();
byte @Nullable [] getHash();
/**
* Gets the {@link Origin} of this resource-pack.