Skip to content

Commit

Permalink
fix multiversion (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
MicrocontrollersDev authored Jul 14, 2024
1 parent a9754f5 commit d2e8f0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package club.sk1er.patcher.mixins.performance;

//#if MC==10809
import net.minecraft.client.renderer.chunk.CompiledChunk;
import net.minecraft.client.renderer.chunk.RenderChunk;
import net.minecraft.client.renderer.tileentity.TileEntityRendererDispatcher;
Expand All @@ -11,7 +10,6 @@
import org.spongepowered.asm.mixin.injection.Redirect;

@Mixin(RenderChunk.class)
//#endif
public class RenderChunkMixin_OptimizeSpecialTileEntities {
//#if MC==10809
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

@Mixin(TextureManager.class)
public class TextureManagerMixin_MemoryLeak {
//#if MC==10809
@Shadow
@Final
private Map<ResourceLocation, ITextureObject> mapTextureObjects;
Expand All @@ -22,4 +23,5 @@ public class TextureManagerMixin_MemoryLeak {
private void patcher$removeEntry(ResourceLocation textureLocation, CallbackInfo ci) {
this.mapTextureObjects.remove(textureLocation);
}
//#endif
}

0 comments on commit d2e8f0f

Please sign in to comment.