mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-29 15:07:36 +02:00
Fix npe when reading block tag
This commit is contained in:
parent
2b817e5590
commit
f183c76afa
@ -73,6 +73,8 @@ class BlockTest implements Block {
|
||||
|
||||
@Override
|
||||
public <T> @Nullable T getTag(@NotNull Tag<T> tag) {
|
||||
if (compound == null)
|
||||
return null;
|
||||
return tag.read(compound);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user