Unbuffers your data

- Fix null check in BakedModelBufferer
This commit is contained in:
Jozufozu 2024-02-18 17:05:17 -06:00
parent db696f5975
commit 456b8b66fe

View File

@ -238,7 +238,7 @@ public final class BakedModelBufferer {
shadedData.release();
}
RenderedBuffer unshadedData = unshadedBuffer.endOrDiscardIfEmpty();
if (unshadedBuffer != null) {
if (unshadedData != null) {
resultConsumer.accept(renderType, false, unshadedData);
unshadedData.release();
}