Fix incorrect merge

This commit is contained in:
embeddedt 2023-12-23 15:56:28 -05:00
parent d03571cb05
commit b23502c32b
No known key found for this signature in database
GPG Key ID: A69433EC199B5613

View File

@ -42,11 +42,7 @@ public class BufferBuilderMixin {
try {
ByteBuffer buf = buffer;
// can be null if a mod already tried to free the buffer
<<<<<<< HEAD
if(!this.closed && buf != null) {
=======
if(buf != null && mfix$shouldFree) {
>>>>>>> propagations/1.20
if(!this.closed && buf != null && mfix$shouldFree) {
if(!leakReported) {
leakReported = true;
ModernFix.LOGGER.warn("One or more BufferBuilders have been leaked, ModernFix will attempt to correct this.");