fix nametags and remove unnecessary class
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m11s

This commit is contained in:
Daniella / Tove 2024-06-13 15:33:57 +02:00
parent 0ce8070b3b
commit 7ddf5f9349
Signed by: TudbuT
GPG key ID: B3CF345217F202D3
3 changed files with 2 additions and 6 deletions

View file

@ -284,8 +284,4 @@ public abstract class Feature extends ToggleButton implements SetCommand {
public boolean renderInHUD() { public boolean renderInHUD() {
return true; return true;
} }
public static class TriggerHandler {
}
} }

View file

@ -125,7 +125,7 @@ public class Nametags extends Feature {
ScaledResolution scaledRes = new ScaledResolution(mc); ScaledResolution scaledRes = new ScaledResolution(mc);
double twoDscale = scaledRes.getScaleFactor() / Math.pow(scaledRes.getScaleFactor(), 2.0D); double twoDscale = scaledRes.getScaleFactor() / Math.pow(scaledRes.getScaleFactor(), 2.0D);
return (float) twoDscale + (mc.player.getDistance(player) / (0.7f * 10)); return (float) twoDscale + (mc.getRenderViewEntity().getDistance(player) / (0.7f * 10));
} }

View file

@ -14,7 +14,7 @@ public class ClientHandler {
public TypedOutputStream outputStream; public TypedOutputStream outputStream;
public void handle(Socket socket) throws IOException { public void handle(Socket socket) throws IOException {
socket.setSoTimeout(15000); socket.setSoTimeout(5000);
inputStream = new TypedInputStream(socket.getInputStream()); inputStream = new TypedInputStream(socket.getInputStream());
outputStream = new TypedOutputStream(socket.getOutputStream()); outputStream = new TypedOutputStream(socket.getOutputStream());