Skip to content

Commit

Permalink
Fixed range of property of Particle Generator
Browse files Browse the repository at this point in the history
  • Loading branch information
OneEyeMaker committed Jun 13, 2023
1 parent b3611a7 commit 9c1c802
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public GUIParticleGenerator(TileParticleGenerator particleGenerator) {
this.particleGenerator = particleGenerator;
this.properties = new HashMap<>();
syncWithServer();
this.updateScreen();
updateScreen();
}

private static final String[] InfoText = {
Expand Down Expand Up @@ -433,7 +433,7 @@ private void syncWithServer() {
properties.put(13, new FloatProperty(1, "Random:", particleGenerator.randomMotionX, -5F, 5F, 1000F));
properties.put(14, new FloatProperty(1, "Random:", particleGenerator.randomMotionY, -5F, 5F, 1000F));
properties.put(15, new FloatProperty(1, "Random:", particleGenerator.randomMotionZ, -5F, 5F, 1000F));
properties.put(16, new FloatProperty(1, "Random:", particleGenerator.randomScale, 0.01F, 50F, 100F));
properties.put(16, new FloatProperty(1, "Random:", particleGenerator.randomScale, 0F, 50F, 100F));
properties.put(17, new IntegerProperty(1, "Random:", particleGenerator.randomLife, 0, 1000));

properties.put(20, new FloatProperty(2, "Spawn X:", particleGenerator.spawnX, -50F, 50F, 10F));
Expand Down

0 comments on commit 9c1c802

Please sign in to comment.