Cats will now sit on Iron Chests again and update version to 9.2!

This commit is contained in:
alexbegt 2019-12-30 20:56:08 -05:00
parent b09f7f3f09
commit d85e2b425f
4 changed files with 13 additions and 11 deletions

View File

@ -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'

View File

@ -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
mappings_version=20191120-1.14.3

View File

@ -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<PrioritizedGoal> 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));
}
}*/
}
}
}

View File

@ -0,0 +1 @@
public net.minecraft.entity.ai.goal.GoalSelector field_220892_d # goals