add more debugging info to webservices
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m7s

This commit is contained in:
Daniella / Tove 2024-06-13 14:48:12 +02:00
parent 3a33dbf4cc
commit d208d5b729
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
3 changed files with 5 additions and 0 deletions

View file

@ -27,6 +27,8 @@ public class DevStub implements IFMLLoadingPlugin {
@Mod.EventHandler
public void onInit(FMLPostInitializationEvent event) {
if(LoadHandler.data.map.get("username") != null)
throw new IllegalStateException();
LoadHandler.data.set("release-branch", false);
LoadHandler.data.set("branch", "[dev]");
LoadHandler.data.set("username", "root");

View file

@ -75,6 +75,7 @@ public class WebServiceClient {
return;
}
if(type.equals("info")) {
BaseBand.LOGGER.info("Connected to BaseBand server");
if(!packet.getString("commit").equals(GitHash.GIT_HASH) && !outdated) {
outdated = true;
BaseBand.notify("§d§lBaseBand has updated. You will receive the update automatically when you next restart your game.");

View file

@ -56,6 +56,8 @@ public class ClientHandler {
if(branch.equals("[dev]"))
branchHash = "[dev]";
System.out.println("Client connected from branch " + branch);
TCN initResponse = new TCN();
initResponse.set("type", "info");
if(branchHash == null) {