mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-02-21 06:02:35 +01:00
Set max. sound distance to 320, in order to have a protective effect.
This is about the max. view distance, will be configurable later on.
This commit is contained in:
parent
c6c904254f
commit
02eea231b7
@ -18,7 +18,7 @@ public class SoundDistance extends PacketAdapter {
|
||||
// TODO: For lower distances more packets might need to be intercepted.
|
||||
|
||||
/** Maximum distance for thunder effects (squared). */
|
||||
private static final double distSq = 512.0 * 512.0; // TODO: Maybe configurable.
|
||||
private static final double distSq = 320.0 * 320.0; // TODO:configurable.
|
||||
|
||||
private static final String[] effectNames = new String[] { // Prefix tree?
|
||||
"ambient.weather.thunder",
|
||||
|
Loading…
Reference in New Issue
Block a user