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:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user