Skip to content

Commit

Permalink
fix for ParticleEffect
Browse files Browse the repository at this point in the history
Change maximum range (radius in denizen command) to 100 instead of 20
Change debug message to be clearer for an external user
  • Loading branch information
blankiito committed Dec 9, 2013
1 parent 245a1ac commit f5edd39
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -75,7 +75,7 @@ public enum ParticleEffect {

private static final Map<String, ParticleEffect> NAME_MAP = new HashMap<String, ParticleEffect>();
private static final Map<Integer, ParticleEffect> ID_MAP = new HashMap<Integer, ParticleEffect>();
private static final double MAX_RANGE = 20.0D;
private static final double MAX_RANGE = 100.0D; // When auf updated, it was 20.0 max range
private static Constructor<?> PARTICLE_PACKET_CONSTRUCTOR;

static {
Expand Down Expand Up @@ -192,7 +192,7 @@ public void display(Location loc, float offsetX, float offsetY, float offsetZ, f
*/
public void display(Location loc, double range, float offsetX, float offsetY, float offsetZ, float speed, int amount) {
if (range > MAX_RANGE)
throw new IllegalArgumentException("Range has to be lower/equal the maximum of 20");
throw new IllegalArgumentException("Radius effect has to be lower/equal the maximum of 100");
sendPacket(getPlayersInRange(loc, range), createPacket(loc, offsetX, offsetY, offsetZ, speed, amount));
}

Expand Down

0 comments on commit f5edd39

Please sign in to comment.