Skip to content

Commit

Permalink
Generate class with Java 8 version
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed Sep 17, 2024
1 parent 9222fae commit d3d7bdb
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
import net.caffeinemc.mods.sodium.api.vertex.serializer.VertexSerializer;
import org.lwjgl.system.MemoryUtil;
import org.objectweb.asm.*;
import org.spongepowered.asm.mixin.MixinEnvironment;

import java.lang.invoke.MethodHandles;
import java.util.ArrayList;
import java.util.List;
Expand All @@ -20,7 +18,7 @@ public static Bytecode generate(VertexFormatDescription srcFormat, VertexFormatD
var name = "me/jellysquid/mods/sodium/client/render/vertex/serializers/generated/VertexSerializer$Impl$" + identifier;

ClassWriter classWriter = new ClassWriter(0);
classWriter.visit(MixinEnvironment.getCompatibilityLevel().getClassVersion(), Opcodes.ACC_FINAL | Opcodes.ACC_PUBLIC, name, null,
classWriter.visit(Opcodes.V1_8, Opcodes.ACC_FINAL | Opcodes.ACC_PUBLIC, name, null,
Type.getInternalName(Object.class),
new String[] { Type.getInternalName(VertexSerializer.class) });

Expand Down

0 comments on commit d3d7bdb

Please sign in to comment.