mirror of
https://github.com/Minestom/Minestom.git
synced 2024-12-24 01:58:00 +01:00
Final entry
Signed-off-by: TheMode <themode@outlook.fr>
This commit is contained in:
parent
0c9542486f
commit
6a79de2406
@ -177,7 +177,6 @@ final class TagHandlerImpl implements TagHandler {
|
||||
}
|
||||
|
||||
private static <T> T read(Entry<?>[] entries, Tag<T> tag) {
|
||||
Entry<?> entry;
|
||||
final Tag.PathEntry[] paths = tag.path;
|
||||
if (paths != null) {
|
||||
// Must be a path-able entry
|
||||
@ -185,6 +184,7 @@ final class TagHandlerImpl implements TagHandler {
|
||||
return tag.createDefault();
|
||||
}
|
||||
final int index = tag.index;
|
||||
final Entry<?> entry;
|
||||
if (index >= entries.length || (entry = entries[index]) == null) {
|
||||
return tag.createDefault();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user