Iterate Hashmap every game tick

  • Thread starter /u/Jolo_Janssen
  • Start date
U

/u/Jolo_Janssen

Guest
Member
I am try make particles appear on previously saved locations. I have the locations saved in a Hashmap<Location, Integer> where Location stores the location of where the particles are supposed to appear and Integer to determine what type of particles. I use this for loop in a Task that runs every tick.

for (Location l : LightList.keySet()) { Bukkit.getLogger().info(l + LightList.get(l).toString()); l.getWorld().spawnParticle(Particle.END_ROD, l, 3, 0.1, 0.1, 0.1); }

The task runs properly on its own (I tested) but this for loop only runs when the Hashmap is updated. What am i doing wrong?



TLDR: for loop only runs when Hashmap is updated instead of all the time.

submitted by /u/Jolo_Janssen
[link] [comments]

Continue reading...

free plugins
minecraft paid for free
spigotmc
SpigotMC
free minecraft paid plugins
free minecraft plugins
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
minecraft plugins
xenforo leaked
xenforo for free
xenforo addons
 
BlackSpigot General Chat
Rules Help Users
    B @ BeingImpossible: Promote your discord server Fast & Free ⚡ Check out: https://dscspot.lol/ get free members
    Top