Skip to content

Commit

Permalink
Removed localhost reference, and removed player log out sync trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
chasem-dev committed Mar 24, 2024
1 parent 85b20d2 commit b0a610b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
import java.util.zip.DeflaterOutputStream;

public class ShowcaseService {
public static String API_BASE_URL = "http://localhost:3000/api";
// public static String API_BASE_URL = "http://localhost:3000/api";

// public static String API_BASE_URL = "https://cobblemonextras.com/api";
public static String API_BASE_URL = "https://cobblemonextras.com/api";

public boolean hasFailed = false;
public ScheduledTask showcaseTask;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,5 @@ class CobblemonFabric : ModInitializer {
ServerPlayConnectionEvents.JOIN.register { serverPlayNetworkHandler, _, _ ->
CobblemonExtras.eventHandler.onPlayerLogin(serverPlayNetworkHandler.getPlayer())
}
ServerPlayConnectionEvents.DISCONNECT.register { serverPlayNetworkHandler, _ ->
CobblemonExtras.eventHandler.onPlayerLogout(serverPlayNetworkHandler.getPlayer())
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public void onPlayerLogin(PlayerEvent.PlayerLoggedInEvent event) {
CobblemonExtras.INSTANCE.getEventHandler().onPlayerLogin((ServerPlayerEntity) event.getEntity());
}

@SubscribeEvent
public void onPlayerLogout(PlayerEvent.PlayerLoggedOutEvent event) {
CobblemonExtras.INSTANCE.getEventHandler().onPlayerLogout((ServerPlayerEntity) event.getEntity());
}
// @SubscribeEvent
// public void onPlayerLogout(PlayerEvent.PlayerLoggedOutEvent event) {
// CobblemonExtras.INSTANCE.getEventHandler().onPlayerLogout((ServerPlayerEntity) event.getEntity());
// }
}

0 comments on commit b0a610b

Please sign in to comment.