Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/minecraft/1.20' into minecraft/1.20
Browse files Browse the repository at this point in the history
# Conflicts:
#	common/src/main/java/whocraft/tardis_refined/client/model/blockentity/console/FactoryConsoleModel.java
  • Loading branch information
Jeryn99 committed Mar 30, 2024
2 parents a6f83f5 + 4ecf614 commit e910bc1
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2260,8 +2260,6 @@ public void renderConsole(GlobalConsoleBlockEntity globalConsoleBlock, Level lev
root().getAllParts().forEach(ModelPart::resetPose);
TardisClientData reactions = TardisClientData.getInstance(level.dimension());



if (globalConsoleBlock != null && globalConsoleBlock.getBlockState().getValue(GlobalConsoleBlock.POWERED)) {
if (reactions.isFlying()) {
this.animate(reactions.ROTOR_ANIMATION, FLIGHT, Minecraft.getInstance().player.tickCount);
Expand All @@ -2272,8 +2270,6 @@ public void renderConsole(GlobalConsoleBlockEntity globalConsoleBlock, Level lev
}
}



float rot = -125 - ( 30 * ((float) reactions.getThrottleStage() / TardisPilotingManager.MAX_THROTTLE_STAGE));
this.throttleLever.xRot = rot;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ public static boolean shouldMinecraftMusicStop(SoundManager soundManager){
public static void setupSounds(){
LoopingSound.ARS_HUMMING = new LoopingSound(SoundRegistry.ARS_HUM.get(), SoundSource.AMBIENT);
LoopingSound.FLIGHT_LOOP = new LoopingSound(SoundRegistry.TARDIS_SINGLE_FLY.get(), SoundSource.AMBIENT);
LoopingSound.GRAVITY_LOOP = new LoopingSound(SoundRegistry.GRAVITY_TUNNEL.get(), SoundSource.AMBIENT);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public static AABB createGravityBoxFromLevel(Level level, BlockPos blockPos, int


public static boolean isInGravityShaft(Player player) {
return isInAntiGrav(player, player.getBoundingBox().inflate(20, MAX_Y, 20), player.level());
return isInAntiGrav(player, player.getBoundingBox().inflate(8, MAX_Y, 8), player.level());
}

@Environment(EnvType.CLIENT)
Expand Down

0 comments on commit e910bc1

Please sign in to comment.