fix resource pack status

This commit is contained in:
Gero
2023-12-07 13:51:32 +01:00
committed by Shane Freeder
parent 519bf5ee04
commit 058aee259a
2 changed files with 10 additions and 2 deletions

View File

@@ -134,6 +134,10 @@ public class PlayerResourcePackStatusEvent {
* The player has accepted the resource pack and is now downloading it.
*/
ACCEPTED,
/**
* The player has downloaded the resource pack.
*/
DOWNLOADED,
/**
* The URL of the resource pack failed to load.
*/
@@ -145,6 +149,10 @@ public class PlayerResourcePackStatusEvent {
/**
* The resource pack was discarded.
*/
DISCARDED,
DISCARDED;
public boolean isIntermediate() {
return this == ACCEPTED || this == DOWNLOADED;
}
}
}