9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2025-12-25 18:09:20 +00:00

remove invalid codes

This commit is contained in:
XiaoMoMi
2024-01-23 17:01:09 +08:00
parent 85c6621a78
commit 8edc85636f
2 changed files with 3 additions and 7 deletions

View File

@@ -915,7 +915,7 @@ public class WidthManagerImpl implements WidthManager {
return totalLength;
}
public Component nodeToStringInfo(ElementNode node, List<Tuple<String, Key, Boolean>> list, Key font, boolean isBold) {
public void nodeToStringInfo(ElementNode node, List<Tuple<String, Key, Boolean>> list, Key font, boolean isBold) {
if (node instanceof ValueNode valueNode) {
String text = valueNode.value();
if (!text.equals(""))
@@ -940,7 +940,6 @@ public class WidthManagerImpl implements WidthManager {
this.nodeToStringInfo(child, list, font, isBold);
}
}
return null;
}
public int getWidthFromCache(String text) {

View File

@@ -17,6 +17,8 @@
package net.momirealms.customnameplates.paper.mechanic.image;
import io.papermc.paper.event.player.AsyncChatEvent;
import net.kyori.adventure.text.Component;
import net.momirealms.customnameplates.api.CustomNameplatesPlugin;
import net.momirealms.customnameplates.api.manager.ImageManager;
import net.momirealms.customnameplates.api.mechanic.character.CharacterArranger;
@@ -92,11 +94,6 @@ public class ImageManagerImpl implements ImageManager {
LogUtils.warn("Found duplicated image: " + key);
}
}
File[] pgFiles = imgFolder.listFiles(file -> file.getName().endsWith(".png"));
for (File pg : pgFiles) {
ImageUtils.removeImageShadow(pg);
}
}
@Override