Fixed 1.20.4 forge remap

This commit is contained in:
coolGi
2023-12-23 04:07:44 +10:30
parent bb6e29f254
commit 28d4cc86a9
3 changed files with 12 additions and 1 deletions
@@ -38,14 +38,19 @@ import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
import javax.annotation.Nullable;
@Mixin(DynamicTexture.class)
public class MixinDynamicTexture implements ILightTextureMarker
public abstract class MixinDynamicTexture implements ILightTextureMarker
{
/** Used to prevent accidentally using other dynamic textures as a lightmap */
@Unique
private boolean isLightTexture = false;
@Shadow
#if MC_VER >= MC_1_20_4
(remap = false)
#endif
@Final
private NativeImage pixels;
@@ -74,6 +74,9 @@ import org.lwjgl.opengl.GL15;
public class MixinLevelRenderer
{
@Shadow
#if MC_VER >= MC_1_20_4
(remap = false)
#endif
private ClientLevel level;
@Unique
private static float previousPartialTicks = 0;
@@ -36,6 +36,9 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
public class MixinLightTexture
{
@Shadow
#if MC_VER >= MC_1_20_4
(remap = false)
#endif
@Final
private DynamicTexture lightTexture;