relocate configmaster

This commit is contained in:
xGinko 2024-03-01 13:27:20 +01:00
parent 93c7cb4a31
commit 9448161aec
3 changed files with 8 additions and 4 deletions

View File

@ -57,6 +57,10 @@
<pattern>net.kyori</pattern> <pattern>net.kyori</pattern>
<shadedPattern>me.xginko.villageroptimizer.libs.kyori</shadedPattern> <shadedPattern>me.xginko.villageroptimizer.libs.kyori</shadedPattern>
</relocation> </relocation>
<relocation>
<pattern>io.github.thatsmusic99.configurationmaster</pattern>
<shadedPattern>me.xginko.villageroptimizer.libs.configmaster</shadedPattern>
</relocation>
</relocations> </relocations>
<filters> <filters>
<filter> <filter>

View File

@ -182,7 +182,7 @@ public final class VillagerOptimizer extends JavaPlugin {
Component.text("").style(STYLE) Component.text("").style(STYLE)
.append(Component.text("LANG ERROR").color(NamedTextColor.RED).decorate(TextDecoration.BOLD)) .append(Component.text("LANG ERROR").color(NamedTextColor.RED).decorate(TextDecoration.BOLD))
.append(Component.text("").style(STYLE)), e); .append(Component.text("").style(STYLE)), e);
else logger.error("Error loading language files! Language files will not reload to avoid errors, make sure to correct this before restarting the server!", e); else logger.error("Error loading language files!", e);
} }
} }
@ -192,8 +192,8 @@ public final class VillagerOptimizer extends JavaPlugin {
.map(ZipEntry::getName) .map(ZipEntry::getName)
.filter(name -> name.startsWith("lang/") && name.endsWith(".yml")) .filter(name -> name.startsWith("lang/") && name.endsWith(".yml"))
.collect(Collectors.toSet()); .collect(Collectors.toSet());
} catch (IOException ioException) { } catch (IOException e) {
logger.error("Failed getting default lang files!", ioException); logger.error("Failed getting default lang files!", e);
return Collections.emptySet(); return Collections.emptySet();
} }
} }

View File

@ -315,7 +315,7 @@ public final class WrappedVillager {
try { try {
villager.shakeHead(); villager.shakeHead();
} catch (NoSuchMethodError e) { } catch (NoSuchMethodError e) {
villager.getWorld().playSound(villager.getLocation(), Sound.ENTITY_VILLAGER_NO, 1.0F, 1.0F); villager.getWorld().playSound(villager.getEyeLocation(), Sound.ENTITY_VILLAGER_NO, 1.0F, 1.0F);
} }
} }