Mirror von
https://github.com/TheSilentPro/HeadDB.git
synchronisiert 2024-12-26 19:02:39 +01:00
fix reflection console spam
Dieser Commit ist enthalten in:
Ursprung
d279c764d9
Commit
28c594d9de
4
pom.xml
4
pom.xml
@ -6,7 +6,7 @@
|
||||
|
||||
<groupId>tsp.headdb</groupId>
|
||||
<artifactId>HeadDB</artifactId>
|
||||
<version>5.0.0-rc.9</version>
|
||||
<version>5.0.0-rc.10</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>HeadDB</name>
|
||||
@ -75,7 +75,7 @@
|
||||
<dependency>
|
||||
<groupId>com.github.TheSilentPro</groupId>
|
||||
<artifactId>NexusLib</artifactId>
|
||||
<version>9d8b16b770</version>
|
||||
<version>45b4813899</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.TheSilentPro</groupId>
|
||||
|
@ -281,7 +281,8 @@ public class Utils {
|
||||
ItemMeta meta = item.getItemMeta();
|
||||
|
||||
// if version < 1.20.1 use reflection, else (1.20.2+) use PlayerProfile because spigot bitches otherwise.
|
||||
if (ServerVersion.getVersion().orElse(ServerVersion.v_1_20_1).isOlderThan(ServerVersion.v_1_20_2)) {
|
||||
// Assumes newer version has been released when optional is empty.
|
||||
if (ServerVersion.getVersion().orElse(ServerVersion.v_1_20_2).isOlderThan(ServerVersion.v_1_20_1)) {
|
||||
try {
|
||||
GameProfile profile = new GameProfile(head.getUniqueId(), head.getName());
|
||||
profile.getProperties().put("textures", new Property("textures", head.getTexture()));
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren