make webservices work (actually)
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m18s

This commit is contained in:
Daniella / Tove 2024-06-13 16:38:58 +02:00
parent 545296f2ce
commit 90480fccf4
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
3 changed files with 4 additions and 1 deletions

Binary file not shown.

View file

@ -17,6 +17,9 @@ public class Chat {
if(Minecraft.getMinecraft().player != null) {
Minecraft.getMinecraft().player.sendMessage(new TextComponentString(ChatFormatting.LIGHT_PURPLE + Setup.get().Name.toLowerCase() + "~ " + ChatFormatting.RESET + s));
}
else {
}
}
public static void print(ITextComponent comp) {

View file

@ -25,7 +25,7 @@ public class WebServiceClient {
try (Socket client = new Socket("baseband.com.de", 40000)) {
client.setSoTimeout(7000);
client.getOutputStream().write(1); // client mode
inputStream = new TypedInputStream(client.getInputStream());
inputStream = new TypedInputStream(client.getInputStream()).stopOnEOF();
outputStream = new TypedOutputStream(client.getOutputStream());
TCN init = new TCN();