Skip to content

Commit eb00e5b

Browse files
committed
Update mappings to 1.21.9
1 parent 3197cac commit eb00e5b

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

gradle.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
org.gradle.jvmargs=-Xmx1G
22
org.gradle.parallel=true
33
# Fabric Properties
4-
minecraft_version=1.21.9-pre2
5-
yarn_mappings=1.21.9-pre2+build.2
4+
minecraft_version=1.21.9
5+
yarn_mappings=1.21.9+build.1
66
loader_version=0.17.2
77
# Mod Properties
88
mod_version=handled.by.jgitver

src/client/java/io/github/openbagtwo/lighterend/particles/Snowflake.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void tick() {
7878

7979
@Override
8080
public BillboardParticle.RenderType getRenderType() {
81-
return BillboardParticle.RenderType.field_62640;
81+
return BillboardParticle.RenderType.PARTICLE_ATLAS_TRANSLUCENT;
8282
}
8383

8484
public static class Factory implements ParticleFactory<SimpleParticleType> {

src/client/java/io/github/openbagtwo/lighterend/particles/TenaneaPetal.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public void tick() {
9191

9292
@Override
9393
public BillboardParticle.RenderType getRenderType() {
94-
return BillboardParticle.RenderType.field_62640;
94+
return BillboardParticle.RenderType.PARTICLE_ATLAS_TRANSLUCENT;
9595
}
9696

9797
public static class Factory implements ParticleFactory<SimpleParticleType> {

src/main/java/io/github/openbagtwo/lighterend/mobs/SilkMoth.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ class EnterHiveGoal extends Goal {
275275
public boolean canStart() {
276276
if (
277277
SilkMoth.this.hivePos != null && SilkMoth.this.canEnterHive()
278-
&& SilkMoth.this.hivePos.isWithinDistance(SilkMoth.this.getPos(), 2.0)
278+
&& SilkMoth.this.hivePos.isWithinDistance(SilkMoth.this.getEntityPos(), 2.0)
279279
) {
280280
SilkMothNestEntity nest = SilkMoth.this.getHive();
281281
if (nest != null && nest.getOccupancy() < SilkMothNestEntity.MAX_MOTH_COUNT) {
@@ -380,8 +380,8 @@ public void tick() {
380380
if (this.ticks > this.getTickCount(MIN_TICKS_BETWEEN_ENTERING_HIVE)) {
381381
this.makeChosenHivePossibleHive();
382382
} else if (!SilkMoth.this.navigation.isFollowingPath()) {
383-
if (!SilkMoth.this.hivePos.isWithinDistance(SilkMoth.this.getPos(), 16)) {
384-
if (!SilkMoth.this.hivePos.isWithinDistance(SilkMoth.this.getPos(),
383+
if (!SilkMoth.this.hivePos.isWithinDistance(SilkMoth.this.getEntityPos(), 16)) {
384+
if (!SilkMoth.this.hivePos.isWithinDistance(SilkMoth.this.getEntityPos(),
385385
MAX_DISTANCE_FROM_HIVE)) {
386386
SilkMoth.this.clearHivePos();
387387
} else {
@@ -408,7 +408,7 @@ public void tick() {
408408
}
409409

410410
private boolean startMovingToFar(BlockPos pos) {
411-
int i = pos.isWithinDistance(SilkMoth.this.getPos(), 3) ? 1 : 2;
411+
int i = pos.isWithinDistance(SilkMoth.this.getEntityPos(), 3) ? 1 : 2;
412412
SilkMoth.this.navigation.setRangeMultiplier(10.0F);
413413
SilkMoth.this.navigation.startMovingTo(pos.getX(), pos.getY(), pos.getZ(), i, 1.0);
414414
return SilkMoth.this.navigation.getCurrentPath() != null
@@ -542,7 +542,7 @@ private Vec3d getRandomLocation() {
542542
if (SilkMoth.this.getHive() != null && SilkMoth.this.hivePos.isWithinDistance(
543543
SilkMoth.this.getBlockPos(), this.getMaxWanderDistance())) {
544544
Vec3d vec3d = Vec3d.ofCenter(SilkMoth.this.hivePos);
545-
vec3d2 = vec3d.subtract(SilkMoth.this.getPos()).normalize();
545+
vec3d2 = vec3d.subtract(SilkMoth.this.getEntityPos()).normalize();
546546
} else {
547547
vec3d2 = SilkMoth.this.getRotationVec(0.0F);
548548
}

0 commit comments

Comments
 (0)