Skip to content

Commit

Permalink
fixed odd crash with one of the players
Browse files Browse the repository at this point in the history
  • Loading branch information
Creativious committed Feb 3, 2024
1 parent dc972ab commit e39bf6b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# 1.2.22
- fixed crash for flight sound

# 1.2.21
- Fixed more getChunk methods, they were in tardis flight code, should help with the performance

Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ yarn_mappings=1.20.1+build.10
loader_version=0.15.3

# Mod Properties
mod_version = 1.2.21-1.20.1-beta
mod_version = 1.2.22-1.20.1-beta
maven_group = mdteam.ait
archives_base_name = ait

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
public class PositionedLoopingSound extends LoopingSound {
public PositionedLoopingSound(SoundEvent soundEvent, SoundCategory soundCategory, BlockPos pos, float volume, float pitch) {
super(soundEvent, soundCategory);

this.x = pos.getX();
this.y = pos.getY();
this.z = pos.getZ();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ public class ClientFlightHandler extends SoundHandler {
protected ClientFlightHandler() {}

public LoopingSound getFlightLoop() {
if (tardis().getDesktop().getConsolePos() == null) return null;
if (FLIGHT == null) FLIGHT = new FlightSound(AITSounds.FLIGHT_LOOP, SoundCategory.BLOCKS, tardis().getDesktop().getConsolePos(), 2.5f); // should this be positioned at the console pos or global?

return FLIGHT;
Expand Down

0 comments on commit e39bf6b

Please sign in to comment.