diff --git a/build.gradle b/build.gradle index f4cc770..4b5671a 100755 --- a/build.gradle +++ b/build.gradle @@ -29,12 +29,14 @@ sourceCompatibility = targetCompatibility = compileJava.sourceCompatibility = co minecraft { mappings channel: 'snapshot', version: mappings_version + accessTransformer = file('src/main/resources/META-INF/accesstransformer.cfg') + runs { client { workingDirectory project.file('run') // Recommended logging data for a userdev environment - property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP,CORE' + property 'forge.logging.markers', 'REGISTRIES,REGISTRYDUMP,CORE' // Recommended logging level for the console property 'forge.logging.console.level', 'debug' @@ -50,7 +52,7 @@ minecraft { workingDirectory project.file('run') // Recommended logging data for a userdev environment - property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP,CORE' + property 'forge.logging.markers', 'REGISTRIES,REGISTRYDUMP,CORE' // Recommended logging level for the console property 'forge.logging.console.level', 'debug' @@ -66,7 +68,7 @@ minecraft { workingDirectory project.file('run') // Recommended logging data for a userdev environment - property 'forge.logging.markers', 'SCAN,REGISTRIES,REGISTRYDUMP,CORE' + property 'forge.logging.markers', 'REGISTRIES,REGISTRYDUMP,CORE' // Recommended logging level for the console property 'forge.logging.console.level', 'debug' diff --git a/gradle.properties b/gradle.properties index a9378c5..ea909cc 100644 --- a/gradle.properties +++ b/gradle.properties @@ -4,15 +4,15 @@ org.gradle.jvmargs=-Xmx3G org.gradle.daemon=false # Mod Version Information -mod_version=9.1 +mod_version=9.2 # Minecraft Version Information minecraft_version=1.14.4 minecraft_version_toml=14 # Forge Version Information -forge_version=28.1.1 +forge_version=28.1.90 forge_version_toml=28 # Mappings Information -mappings_version=20190912-1.14.3 \ No newline at end of file +mappings_version=20191120-1.14.3 \ No newline at end of file diff --git a/src/main/java/com/progwml6/ironchest/common/ai/CatsSitOnChestsHandler.java b/src/main/java/com/progwml6/ironchest/common/ai/CatsSitOnChestsHandler.java index c340205..61362cb 100644 --- a/src/main/java/com/progwml6/ironchest/common/ai/CatsSitOnChestsHandler.java +++ b/src/main/java/com/progwml6/ironchest/common/ai/CatsSitOnChestsHandler.java @@ -23,7 +23,6 @@ public class CatsSitOnChestsHandler @SubscribeEvent public void changeSittingTaskForOcelots(final LivingEvent.LivingUpdateEvent evt) { - /* if (evt.getEntityLiving().ticksExisted < 5 && evt.getEntityLiving() instanceof CatEntity) { HashSet goals = new HashSet<>(); @@ -32,7 +31,7 @@ public class CatsSitOnChestsHandler for (PrioritizedGoal goal : catEntity.goalSelector.goals) { - if (goal.func_220772_j().getClass() == CatSitOnBlockGoal.class) + if (goal.getGoal().getClass() == CatSitOnBlockGoal.class) { goals.add(goal); } @@ -40,9 +39,9 @@ public class CatsSitOnChestsHandler for (PrioritizedGoal goal : goals) { - catEntity.goalSelector.removeGoal(goal.func_220772_j()); - catEntity.goalSelector.addGoal(goal.getPriority(), new IronChestCatSitOnBlockGoal1(catEntity, 0.4F)); + catEntity.goalSelector.removeGoal(goal.getGoal()); + catEntity.goalSelector.addGoal(goal.getPriority(), new IronChestCatSitOnBlockGoal(catEntity, 0.4F)); } - }*/ + } } } diff --git a/src/main/resources/META-INF/accesstransformer.cfg b/src/main/resources/META-INF/accesstransformer.cfg new file mode 100644 index 0000000..2c2f0d2 --- /dev/null +++ b/src/main/resources/META-INF/accesstransformer.cfg @@ -0,0 +1 @@ +public net.minecraft.entity.ai.goal.GoalSelector field_220892_d # goals \ No newline at end of file