diff --git a/build.gradle b/build.gradle index 0114a61..76044e6 100644 --- a/build.gradle +++ b/build.gradle @@ -11,7 +11,7 @@ apply plugin: 'net.minecraftforge.gradle.forge' //Only edit below this line, the above code adds and enables the necessary things for Forge to be setup. -version = "2.0" +version = "2.0.1" group = "com.thistestuser.farlands" // http://maven.apache.org/guides/mini/guide-naming-conventions.html archivesBaseName = "farlands" diff --git a/src/main/java/com/thistestuser/farlandscfg/Config.java b/src/main/java/com/thistestuser/farlands/Config.java similarity index 98% rename from src/main/java/com/thistestuser/farlandscfg/Config.java rename to src/main/java/com/thistestuser/farlands/Config.java index 70981e9..1876bb0 100644 --- a/src/main/java/com/thistestuser/farlandscfg/Config.java +++ b/src/main/java/com/thistestuser/farlands/Config.java @@ -1,4 +1,4 @@ -package com.thistestuser.farlandscfg; +package com.thistestuser.farlands; import java.io.BufferedReader; import java.io.File; diff --git a/src/main/java/com/thistestuser/farlands/FarLandsTransformer.java b/src/main/java/com/thistestuser/farlands/FarLandsTransformer.java index e1675fd..fccfaac 100644 --- a/src/main/java/com/thistestuser/farlands/FarLandsTransformer.java +++ b/src/main/java/com/thistestuser/farlands/FarLandsTransformer.java @@ -16,8 +16,6 @@ import org.objectweb.asm.tree.TypeInsnNode; import org.objectweb.asm.tree.VarInsnNode; -import com.thistestuser.farlandscfg.Config; - import net.minecraft.launchwrapper.IClassTransformer; public class FarLandsTransformer implements IClassTransformer @@ -50,7 +48,8 @@ else if(transformedName.equals("net.minecraft.entity.player.EntityPlayer") && co return patchClassASMPlayer(name, classBytes, isObfuscated); else if(transformedName.equals("net.minecraft.server.management.PlayerList") && config.extendWB) return patchClassASMPlayerList(name, classBytes, isObfuscated); - else if(transformedName.equals("net.minecraft.world.gen.ChunkGeneratorOverworld") && config.offset) + else if((transformedName.equals("net.minecraft.world.gen.ChunkGeneratorOverworld") + || transformedName.equals("net.minecraft.world.gen.ChunkProviderGenerate")) && config.offset) return patchChunkGen(name, classBytes, isObfuscated); return classBytes; }