last fixes
This commit is contained in:
parent
c4a3bd1cbf
commit
685ce5e025
|
@ -274,13 +274,12 @@ public class BungeeCord extends ProxyServer {
|
|||
for (final ListenerInfo info : this.config.getListeners()) {
|
||||
InetSocketAddress sock = info.getHost();
|
||||
if(info.isWebsocket()) {
|
||||
int port = 0;
|
||||
try {
|
||||
ServerSocket s = new ServerSocket(0, 0, InetAddress.getByName("127.11.0.1"));
|
||||
sock = new InetSocketAddress("127.11.0.1", s.getLocalPort());
|
||||
s.close();
|
||||
} catch(IOException e) {
|
||||
port = (int) (System.nanoTime() % 64000L + 1025L);
|
||||
sock = new InetSocketAddress("127.11.0.1",(int) (System.nanoTime() % 64000L + 1025L));
|
||||
}
|
||||
try {
|
||||
this.wsListeners.add(new WebSocketListener(info, sock, this));
|
||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -1175,9 +1175,9 @@ public class EntityRenderer {
|
|||
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)) {
|
||||
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 {
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2046,7 +2046,7 @@ public class EaglerAdapterImpl2 {
|
|||
}
|
||||
break;
|
||||
case VOICE_SIGNAL_ALLOWED:
|
||||
voiceAvailableStat = streamIn.readBoolean();
|
||||
voiceAvailableStat = streamIn.read() == 1;
|
||||
String[] servs = new String[streamIn.read()];
|
||||
for(int i = 0; i < servs.length; i++) {
|
||||
servs[i] = streamIn.readUTF();
|
||||
|
|
Loading…
Reference in New Issue
Block a user