Skip to content

Commit

Permalink
1.2.4.1
Browse files Browse the repository at this point in the history
- Updated fabric, midnightlib
- Fixed #21, #22, #25
  • Loading branch information
erruqie committed Nov 23, 2022
1 parent 2c0c72d commit 0bb698e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
10 changes: 5 additions & 5 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.19.2
yarn_mappings=1.19.2+build.4
loader_version=0.14.9
yarn_mappings=1.19.2+build.28
loader_version=0.14.10

# Mod Properties
mod_version = 1.2.4
mod_version = 1.2.4.1
maven_group = one.clownless.blockify
archives_base_name = blockify
modrinth_projectid = X5aijFqA

# Dependencies
fabric_version=0.59.0+1.19.2
midnightlib_version=0.5.2
fabric_version=0.67.1+1.19.2
midnightlib_version=1.0.0-fabric
crowdintranslate_version=1.4+1.19
5 changes: 1 addition & 4 deletions src/main/java/one/clownless/blockify/util/SpotifyUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public class SpotifyUtil
public static void initialize()
{
authFile = new File(System.getProperty("user.dir") + File.separator +
"mods" + File.separator + "blockifyTokens.json");
"config" + File.separator + "blockifyTokens.json");
try
{
if (!authFile.exists())
Expand Down Expand Up @@ -200,7 +200,6 @@ public static boolean refreshAccessToken()

public static void refreshActiveSession()
{
LOGGER.info("Attempting to refresh active session...");
try
{
HttpRequest getDevices = HttpRequest.newBuilder(
Expand All @@ -215,7 +214,6 @@ public static void refreshActiveSession()
String thisDeviceID = "";
if (devicesJson.size() == 0)
{
MinecraftClient.getInstance().player.sendMessage(Text.of("Please open Spotify and then click the force update button."));
BlockifyHUD.setDuration(1);
BlockifyHUD.setProgress(0);
isPlaying = false;
Expand Down Expand Up @@ -384,7 +382,6 @@ public static void playPause()

public static String[] getPlaybackInfo()
{
LOGGER.info("Attempting to retrieve data from Spotify...");
String[] results = new String[7];
try
{
Expand Down

0 comments on commit 0bb698e

Please sign in to comment.