Fix npe when reading block tag

This commit is contained in:
TheMode 2021-06-22 14:06:28 +02:00
parent 2b817e5590
commit f183c76afa

View File

@ -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);
}
}