vanilla-fixes

Minecraft: Better than Adventure! mod that fixes some issues
git clone git://memoryshards.xyz/vanilla-fixes.git
Log | Files | Refs | README | LICENSE

ChunkProviderStaticMixin.java (666B)


      1 package ambos.vanillafixes.mixin;
      2 
      3 import net.minecraft.client.world.chunk.provider.ChunkProviderStatic;
      4 import org.spongepowered.asm.mixin.Mixin;
      5 import org.spongepowered.asm.mixin.injection.Constant;
      6 import org.spongepowered.asm.mixin.injection.ModifyConstant;
      7 
      8 import ambos.vanillafixes.VanillaFixes;
      9 
     10 @Mixin(value = ChunkProviderStatic.class, remap = false)
     11 final class ChunkProviderStaticMixin {
     12     @ModifyConstant(method = "getInfoString", constant = @Constant(stringValue = "ChunkCache: "))
     13     private String reformatChunkCache(String value) {
     14         if (VanillaFixes.F3_MENU) {
     15             return "Chunk Cache: ";
     16         }
     17 
     18         return value;
     19     }
     20 }