last fixes

This commit is contained in:
LAX1DUDE 2022-07-21 21:23:50 -07:00
parent c4a3bd1cbf
commit 685ce5e025
7 changed files with 4 additions and 5 deletions

View file

@ -274,13 +274,12 @@ public class BungeeCord extends ProxyServer {
for (final ListenerInfo info : this.config.getListeners()) { for (final ListenerInfo info : this.config.getListeners()) {
InetSocketAddress sock = info.getHost(); InetSocketAddress sock = info.getHost();
if(info.isWebsocket()) { if(info.isWebsocket()) {
int port = 0;
try { try {
ServerSocket s = new ServerSocket(0, 0, InetAddress.getByName("127.11.0.1")); ServerSocket s = new ServerSocket(0, 0, InetAddress.getByName("127.11.0.1"));
sock = new InetSocketAddress("127.11.0.1", s.getLocalPort()); sock = new InetSocketAddress("127.11.0.1", s.getLocalPort());
s.close(); s.close();
} catch(IOException e) { } catch(IOException e) {
port = (int) (System.nanoTime() % 64000L + 1025L); sock = new InetSocketAddress("127.11.0.1",(int) (System.nanoTime() % 64000L + 1025L));
} }
try { try {
this.wsListeners.add(new WebSocketListener(info, sock, this)); this.wsListeners.add(new WebSocketListener(info, sock, this));

View file

@ -1175,9 +1175,9 @@ public class EntityRenderer {
this.rainSoundCounter = 0; this.rainSoundCounter = 0;
if (var10 > var2.posY + 1.0D && var3.getPrecipitationHeight(MathHelper.floor_double(var2.posX), MathHelper.floor_double(var2.posZ)) > MathHelper.floor_double(var2.posY)) { if (var10 > var2.posY + 1.0D && var3.getPrecipitationHeight(MathHelper.floor_double(var2.posX), MathHelper.floor_double(var2.posZ)) > MathHelper.floor_double(var2.posY)) {
this.mc.theWorld.playSound(var8, var10, var12, "ambient.weather.rain", 0.006F, 0.5F, false); this.mc.theWorld.playSound(var8, var10, var12, "ambient.weather.rain", 0.45F, 0.5F, false);
} else { } else {
this.mc.theWorld.playSound(var8, var10, var12, "ambient.weather.rain", 0.012F, 1.0F, false); this.mc.theWorld.playSound(var8, var10, var12, "ambient.weather.rain", 0.7F, 1.0F, false);
} }
} }
} }

View file

@ -2046,7 +2046,7 @@ public class EaglerAdapterImpl2 {
} }
break; break;
case VOICE_SIGNAL_ALLOWED: case VOICE_SIGNAL_ALLOWED:
voiceAvailableStat = streamIn.readBoolean(); voiceAvailableStat = streamIn.read() == 1;
String[] servs = new String[streamIn.read()]; String[] servs = new String[streamIn.read()];
for(int i = 0; i < servs.length; i++) { for(int i = 0; i < servs.length; i++) {
servs[i] = streamIn.readUTF(); servs[i] = streamIn.readUTF();