mirror of
https://github.com/BlazingGames/blazing-games-plugin.git
synced 2025-02-03 21:26:41 -05:00
Made rotate more efficient
This commit is contained in:
parent
94e0698e48
commit
65cd6907fe
1 changed files with 1 additions and 6 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.TextLocation;
|
||||
import de.blazemcworld.blazinggames.utils.TomeAltarStorage;
|
||||
import io.papermc.paper.scoreboard.numbers.NumberFormat;
|
||||
import net.kyori.adventure.text.Component;
|
||||
|
@ -60,11 +59,7 @@ public class TickEventListener {
|
|||
if (entity instanceof ItemDisplay display) {
|
||||
PersistentDataContainer container = display.getPersistentDataContainer();
|
||||
if (container.has(BlazingGames.get().key("spin"), PersistentDataType.BOOLEAN)) {
|
||||
for (Location location : altars) {
|
||||
if (TextLocation.serializeRounded(location).equals(TextLocation.serializeRounded(display.getLocation()))) {
|
||||
display.setRotation(stupidrotate, 0);
|
||||
}
|
||||
}
|
||||
display.setRotation(stupidrotate, 0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue