Skip to content

Commit

Permalink
update particle usage
Browse files Browse the repository at this point in the history
  • Loading branch information
HSGamer committed May 13, 2024
1 parent 15b0ae1 commit cd65dd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>king-of-the-hill</artifactId>
<version>1.0.3</version>
<version>1.0.4</version>
<packaging>jar</packaging>

<name>KingOfTheHill</name>
Expand All @@ -31,7 +31,7 @@
<dependency>
<groupId>com.github.GamesInTheBox-MC</groupId>
<artifactId>GamesInTheBox</artifactId>
<version>1.4.2</version>
<version>2848337b17</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package me.hsgamer.gamesinthebox.kingofthehill.feature;

import com.cryptomorin.xseries.particles.ParticleDisplay;
import com.cryptomorin.xseries.particles.XParticle;
import com.cryptomorin.xseries.particles.Particles;
import me.hsgamer.gamesinthebox.game.feature.BoundingFeature;
import me.hsgamer.gamesinthebox.game.feature.GameConfigFeature;
import me.hsgamer.gamesinthebox.game.simple.SimpleGameArena;
Expand Down Expand Up @@ -49,7 +49,7 @@ public void start() {
Location start = BukkitBlockAdapter.adapt(world, new Position(box.minX, box.minY, box.minZ));
Location end = BukkitBlockAdapter.adapt(world, new Position(box.maxX, box.maxY, box.maxZ));
ParticleDisplay particleDisplay = arena.getFeature(SimpleParticleFeature.class).getParticleDisplay();
task = Scheduler.current().async().runTaskTimer(() -> XParticle.structuredCube(start, end, rate, particleDisplay), period, period);
task = Scheduler.current().async().runTaskTimer(() -> Particles.structuredCube(start, end, rate, particleDisplay), period, period);
}

public void stop() {
Expand Down

0 comments on commit cd65dd7

Please sign in to comment.