Skip to content

Commit fc627ca

Browse files
committed
Some fixes
1 parent 3b7ff53 commit fc627ca

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<#if (data.tameable && data.breedable && (!data.waterMob || data.flyingMob))>
22
<#include "aiconditions.java.ftl">
3-
this.goalSelector.addGoal(${cbi+1}, new FollowOwnerGoal(this, ${field$speed}, (float) ${field$min_distance}, (float) ${field$max_distance})<@conditionCode field$condition/>);
3+
this.goalSelector.addGoal(${cbi+1}, new FollowOwnerGoal(this, ${field$speed}, (float) ${field$min_distance}, (float) ${field$max_distance}, false)<@conditionCode field$condition/>);
44
</#if>

src/main/resources/forge-1.15.2/templates/biome/biome.java.ftl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,6 @@ public class ${name}Biome extends Biome {
150150
.baseHeight(${ct?then([data.minHeight, 32]?min, 10)}).heightInterval(20)
151151
<#if data.hasVines() || data.hasFruits()>
152152
<@vinesAndFruits/>
153-
<#else>
154-
.ignoreVines()
155153
</#if>)
156154
.build())
157155
.withPlacement(Placement.COUNT_EXTRA_HEIGHTMAP.configure(new AtSurfaceWithExtraConfig(${data.treesPerChunk}, 0.1F, 1))));

src/main/resources/forge-1.15.2/templates/livingentity/livingentity.java.ftl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -911,8 +911,8 @@ public class ${name}Entity extends ${extendsClass}Entity <#if interfaces?size gt
911911
}
912912
<#else>
913913
(entityType, world, reason, pos, random) ->
914-
(world.getDifficulty() != Difficulty.PEACEFUL && MonsterEntity.func_223323_a(world, pos, random)
915-
&& MobEntity.func_223315_a(entityType, world, reason, pos, random))
914+
(world.getDifficulty() != Difficulty.PEACEFUL && MonsterEntity.canMonsterSpawn((EntityType<? extends MonsterEntity>) entityType, world, reason, pos, random)
915+
&& MobEntity.canSpawnOn(entityType, world, reason, pos, random))
916916
</#if>
917917
);
918918
</#if>

0 commit comments

Comments
 (0)