Browse Source

1.0.1

tags/1.4.1
Nazar Kalinowski 1 year ago
parent
commit
b65785b077
4 changed files with 8 additions and 5 deletions
  1. +3
    -0
      CHANGELOG
  2. +1
    -1
      pom.xml
  3. +2
    -2
      src/main/java/dev/gwm/spongeplugin/cosmetics/Cosmetics.java
  4. +2
    -2
      src/main/java/dev/gwm/spongeplugin/cosmetics/superobject/effect/CircleCosmeticEffect.java

+ 3
- 0
CHANGELOG View File

@@ -1,2 +1,5 @@
VERSION 1.0.1
* Fix 'CIRCLE' Cosmetic Effect

VERSION 1.0
* Release

+ 1
- 1
pom.xml View File

@@ -6,7 +6,7 @@

<groupId>dev.gwm.spongeplugin</groupId>
<artifactId>cosmetics</artifactId>
<version>1.0</version>
<version>1.0.1</version>
<name>Cosmetics</name>
<packaging>jar</packaging>



+ 2
- 2
src/main/java/dev/gwm/spongeplugin/cosmetics/Cosmetics.java View File

@@ -35,7 +35,7 @@ import java.util.concurrent.atomic.AtomicInteger;
@Plugin(id = "cosmetics",
name = "Cosmetics",
version = "1.0",
version = "1.0.1",
description = "Fancy cosmetic effects",
authors = {"GWM"/* My contacts:
* E-Mail(nazark@tutanota.com),
@@ -46,7 +46,7 @@ import java.util.concurrent.atomic.AtomicInteger;
})
public class Cosmetics extends SpongePlugin {
public static final Version VERSION = new Version(null, 1, 0);
public static final Version VERSION = new Version(null, 1, 0, 1);
private static Cosmetics instance = null;


+ 2
- 2
src/main/java/dev/gwm/spongeplugin/cosmetics/superobject/effect/CircleCosmeticEffect.java View File

@@ -102,8 +102,8 @@ public class CircleCosmeticEffect extends AbstractCosmeticEffect {
}
final double x = getPosition().getX();
final double z = getPosition().getZ();
double xOffset = x + radius * Math.cos(i * d);
double zOffset = z + radius * Math.sin(i * d);
double xOffset = radius * Math.cos(i * d);
double zOffset = radius * Math.sin(i * d);
getViewer().spawnParticles(effect, getPosition().add(new Vector3d(xOffset, 0, zOffset)));
i++;
}


Loading…
Cancel
Save