From 11253243713d77d5ec5a09fe315b75e8a81b804e Mon Sep 17 00:00:00 2001 From: Magnus Ulf Date: Sun, 17 Feb 2019 14:53:40 +0100 Subject: [PATCH] Fix /f sc closing 10 --- .../massivecraft/factions/engine/EngineSeeChunk.java | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/com/massivecraft/factions/engine/EngineSeeChunk.java b/src/com/massivecraft/factions/engine/EngineSeeChunk.java index b27fca00..670e33af 100644 --- a/src/com/massivecraft/factions/engine/EngineSeeChunk.java +++ b/src/com/massivecraft/factions/engine/EngineSeeChunk.java @@ -5,7 +5,10 @@ import com.massivecraft.massivecore.Engine; import com.massivecraft.massivecore.event.EventMassiveCorePlayerLeave; import com.massivecraft.massivecore.ps.PS; import com.massivecraft.massivecore.util.MUtil; +import com.massivecraft.massivecore.util.PeriodUtil; +import org.bukkit.Bukkit; import org.bukkit.Location; +import org.bukkit.Particle; import org.bukkit.World; import org.bukkit.entity.Player; import org.bukkit.event.EventHandler; @@ -62,7 +65,7 @@ public class EngineSeeChunk extends Engine @Override public void run() { - /*// Do we have a new period? + // Do we have a new period? final long now = System.currentTimeMillis(); final long length = 500; if ( ! PeriodUtil.isNewPeriod(this, length, now)) return; @@ -95,9 +98,10 @@ public class EngineSeeChunk extends Engine List locations = getLocations(player, steps, step); for (Location location : locations) { - ParticleEffect.EXPLOSION_NORMAL.display(location, offsetX, offsetY, offsetZ, speed, amount, player); + location.getWorld().spawnParticle(Particle.EXPLOSION_NORMAL, location, amount, offsetX, offsetY, offsetZ, speed); + //ParticleEffect.EXPLOSION_NORMAL.display(location, offsetX, offsetY, offsetZ, speed, amount, player); } - }*/ + } } public static List getLocations(Player player, int steps, int step)