9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2025-12-19 15:09:23 +00:00
This commit is contained in:
XiaoMoMi
2024-01-28 00:29:37 +08:00
parent 65b70a639b
commit bd0abb3463
5 changed files with 17 additions and 17 deletions

View File

@@ -7,7 +7,7 @@ plugins {
allprojects {
version = "2.3.0.4"
version = "2.3.0.5"
apply<JavaPlugin>()
apply(plugin = "java")

View File

@@ -30,7 +30,6 @@ public class CustomNameplatesBungeeCord extends Plugin implements Listener {
instance = this;
this.getProxy().registerChannel(CHANNEL);
this.getProxy().getPluginManager().registerListener(this, this);
this.getLogger().warning("It's not necessary to install the plugin on BungeeCord now!");
}
@Override

View File

@@ -1,8 +1,8 @@
systemProp.socks.proxyHost=127.0.0.1
systemProp.socks.proxyPort=7890
systemProp.http.proxyHost=127.0.0.1
systemProp.http.proxyPort=7890
systemProp.https.proxyHost=127.0.0.1
systemProp.https.proxyPort=7890
#systemProp.socks.proxyHost=127.0.0.1
#systemProp.socks.proxyPort=7890
#
#systemProp.http.proxyHost=127.0.0.1
#systemProp.http.proxyPort=7890
#
#systemProp.https.proxyHost=127.0.0.1
#systemProp.https.proxyPort=7890

View File

@@ -442,7 +442,7 @@ public class WidthManagerImpl implements WidthManager {
}
}
}
int charWidth = (int) (((double) (x_final - i * single) / single * 8) + 1);
int charWidth = x_final - (i * single) + 1;
yml.set(ConfigUtils.native2ascii(c), charWidth);
i++;
}
@@ -501,7 +501,7 @@ public class WidthManagerImpl implements WidthManager {
}
}
}
int charWidth = (int) (((double) (x_final - i * single) / single * 8) + 1);
int charWidth = x_final - (i * single) + 1;
yml.set(ConfigUtils.native2ascii(c), charWidth);
i++;
}
@@ -548,7 +548,8 @@ public class WidthManagerImpl implements WidthManager {
}
}
}
int charWidth = (int) (((double) (x_final - i * single) / single * 8) + 1);
int charWidth = x_final - (i * single) + 1;
yml.set(ConfigUtils.native2ascii(c), charWidth);
i++;
}
@@ -656,7 +657,7 @@ public class WidthManagerImpl implements WidthManager {
int x_final = i * single;
outer:
for (int x = i * single; x < (i+1) * single; x++) {
for (int y = j * single; y < (j+1) * single; y++) {
for (int y = j * 12; y < (j+1) * 12; y++) {
int rgb = bufferedImage.getRGB(x, y);
int alpha = (rgb >> 24) & 0xff;
if (alpha != 0) {
@@ -665,7 +666,7 @@ public class WidthManagerImpl implements WidthManager {
}
}
}
int charWidth = (int) (((double) (x_final - i * single) / single * 8) + 1);
int charWidth = x_final - (i * single) + 1;
yml.set(ConfigUtils.native2ascii(c), charWidth);
i++;
}
@@ -786,7 +787,7 @@ public class WidthManagerImpl implements WidthManager {
}
}
}
int charWidth = (int) (((double) (x_final - i * single) / single * 8) + 1);
int charWidth = x_final - (i * single) + 1;
yml.set(unicode, charWidth);
i++;
}

View File

@@ -61,7 +61,7 @@ background-text:
remove-shadow: true
hello:
background: bedrock_1
text: '%nameplates_image_bubble% %nameplates_unicode_hello%'
text: '%nameplates_image_bubble% %nameplates_descent_hello%'
remove-shadow: true
update:
background: bedrock_1