Skip to content

Commit

Permalink
fix: made the lander explosion happen on the correct celestial body a…
Browse files Browse the repository at this point in the history
…nd disabled it creating fire (#355)
  • Loading branch information
DuckyProgrammer authored Jan 3, 2025
1 parent 9baedc9 commit bd13134
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ public void onGroundHit() {
entity.setDeltaMovement(Vec3.ZERO);
entity.setPos(entity.getX(), this.getY() + 2.25, entity.getZ());
}
this.level().explode(this, this.getX(), this.getY(), this.getZ(), 12, true, Level.ExplosionInteraction.MOB);
this.level().explode(this, this.getX(), this.getY(), this.getZ(), 12, false, Level.ExplosionInteraction.MOB);

discard();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ public LanderCelestialTeleporterType(Codec<Config> codec) {

@Override
public void onEnterAtmosphere(ServerLevel level, ServerPlayer player, CelestialBody<?, ?> body, CelestialBody<?, ?> fromBody, Config config) {
player.teleportTo(level, player.getX(), 1100, player.getZ(), player.getYRot(), player.getXRot());
LanderEntity lander = new LanderEntity(player);
level.addFreshEntity(lander);
lander.setPos(player.getX(), 1100, player.getZ());
player.teleportTo(level, player.getX(), 1100, player.getZ(), player.getYRot(), player.getXRot());
player.startRiding(lander, true);
}
}

0 comments on commit bd13134

Please sign in to comment.