Skip to content

Commit

Permalink
Fix obfuscated method names
Browse files Browse the repository at this point in the history
  • Loading branch information
Runemoro committed Jun 13, 2018
1 parent d75a965 commit 73ec989
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class MixinModChunkGenerator {
private Biome[] temporaryBiomes;

/** @reason Return an empty biome byte array if the chunk is using an int biome array. **/
@Redirect(method = "generateChunk", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B"))
@Redirect(method = "func_185932_a", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/chunk/Chunk;getBiomeArray()[B"))
private byte[] getBiomeArray(Chunk chunk) {
INewChunk newChunk = (INewChunk) chunk;
int[] intBiomeArray = newChunk.getIntBiomeArray();
Expand All @@ -30,7 +30,7 @@ private byte[] getBiomeArray(Chunk chunk) {
return new byte[0];
}

@Redirect(method = "generateChunk", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/biome/BiomeProvider;getBiomes([Lnet/minecraft/world/biome/Biome;IIII)[Lnet/minecraft/world/biome/Biome;"))
@Redirect(method = "func_185932_a", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/biome/BiomeProvider;getBiomes([Lnet/minecraft/world/biome/Biome;IIII)[Lnet/minecraft/world/biome/Biome;"))
private Biome[] getBiomes(BiomeProvider biomeProvider, Biome[] oldBiomeList, int x, int z, int width, int depth) {
temporaryBiomes = biomeProvider.getBiomes(oldBiomeList, x, z, width, depth);
return temporaryBiomes;
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/mixins.jeid.core.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"package": "org.dimdev.jeid.mixin.core",
"required": true,
"refmap": "mixins.jeid.refmap.json",
"refmap": "mixins.jeid.core.refmap.json",
"target": "@env(DEFAULT)",
"minVersion": "0.6",
"compatibilityLevel": "JAVA_8",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/mixins.jeid.init.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"package": "org.dimdev.jeid.mixin.init",
"required": true,
"refmap": "mixins.jeid.refmap.json",
"refmap": "mixins.jeid.init.refmap.json",
"target": "@env(INIT)",
"minVersion": "0.6",
"compatibilityLevel": "JAVA_8",
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/mixins.jeid.modsupport.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"package": "org.dimdev.jeid.mixin.modsupport",
"required": true,
"refmap": "mixins.jeid.refmap.json",
"refmap": "mixins.jeid.modsupport.refmap.json",
"target": "@env(DEFAULT)",
"minVersion": "0.6",
"compatibilityLevel": "JAVA_8",
Expand Down

0 comments on commit 73ec989

Please sign in to comment.