fix nametags and remove unnecessary class
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m11s
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m11s
This commit is contained in:
parent
0ce8070b3b
commit
7ddf5f9349
3 changed files with 2 additions and 6 deletions
|
@ -284,8 +284,4 @@ public abstract class Feature extends ToggleButton implements SetCommand {
|
|||
public boolean renderInHUD() {
|
||||
return true;
|
||||
}
|
||||
|
||||
public static class TriggerHandler {
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -125,7 +125,7 @@ public class Nametags extends Feature {
|
|||
ScaledResolution scaledRes = new ScaledResolution(mc);
|
||||
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));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -14,7 +14,7 @@ public class ClientHandler {
|
|||
public TypedOutputStream outputStream;
|
||||
|
||||
public void handle(Socket socket) throws IOException {
|
||||
socket.setSoTimeout(15000);
|
||||
socket.setSoTimeout(5000);
|
||||
inputStream = new TypedInputStream(socket.getInputStream());
|
||||
outputStream = new TypedOutputStream(socket.getOutputStream());
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue