mirror of
https://github.com/BlazingGames/blazing-games-plugin.git
synced 2025-02-03 21:26:41 -05:00
Happy now ivyc?
This commit is contained in:
parent
4be6d7d2e9
commit
4773963c82
2 changed files with 1 additions and 11 deletions
|
@ -20,7 +20,6 @@ import de.blazemcworld.blazinggames.computing.ComputerRegistry;
|
|||
import de.blazemcworld.blazinggames.enchantments.sys.CustomEnchantments;
|
||||
import de.blazemcworld.blazinggames.enchantments.sys.EnchantmentHelper;
|
||||
import de.blazemcworld.blazinggames.userinterfaces.UserInterface;
|
||||
import de.blazemcworld.blazinggames.utils.TomeAltarStorage;
|
||||
import io.papermc.paper.scoreboard.numbers.NumberFormat;
|
||||
import net.kyori.adventure.text.Component;
|
||||
import net.kyori.adventure.text.format.NamedTextColor;
|
||||
|
@ -42,7 +41,6 @@ import org.bukkit.scoreboard.*;
|
|||
import org.bukkit.util.RayTraceResult;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Objects;
|
||||
|
||||
public class TickEventListener {
|
||||
|
@ -53,7 +51,6 @@ public class TickEventListener {
|
|||
stupidrotate += 8;
|
||||
|
||||
for(World world : Bukkit.getServer().getWorlds()) {
|
||||
ArrayList<Location> altars = new ArrayList<>(TomeAltarStorage.getAll(world));
|
||||
for(Entity entity : world.getEntities()) {
|
||||
// rotate the altars
|
||||
if (entity instanceof ItemDisplay display) {
|
||||
|
|
|
@ -19,10 +19,9 @@ import de.blazemcworld.blazinggames.data.DataStorage;
|
|||
import de.blazemcworld.blazinggames.data.compression.GZipCompressionProvider;
|
||||
import de.blazemcworld.blazinggames.data.name.ArbitraryNameProvider;
|
||||
import de.blazemcworld.blazinggames.data.storage.GsonStorageProvider;
|
||||
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class TomeAltarStorage {
|
||||
|
@ -54,12 +53,6 @@ public class TomeAltarStorage {
|
|||
dataStorage.deleteData(TextLocation.serializeRounded(location));
|
||||
}
|
||||
|
||||
public static List<Location> getAll(World world) {
|
||||
return dataStorage.queryIdentifiers(i -> {
|
||||
return world.equals(TextLocation.deserialize(i).getWorld());
|
||||
}).stream().map(TextLocation::deserialize).toList();
|
||||
}
|
||||
|
||||
public static List<Location> getNear(Location loc, int radius) {
|
||||
int radiusSquared = radius * radius;
|
||||
return dataStorage.queryIdentifiers(i -> {
|
||||
|
|
Loading…
Reference in a new issue