9
0
mirror of https://github.com/Xiao-MoMi/Custom-Nameplates.git synced 2025-12-26 02:19:28 +00:00

Merge pull request #28 from jhqwqmc/main

small changes
This commit is contained in:
XiaoMoMi
2024-04-07 21:33:26 +08:00
committed by GitHub
2 changed files with 1 additions and 7 deletions

View File

@@ -378,9 +378,8 @@ public class RequirementManagerImpl implements RequirementManager {
return condition -> {
String currentWeather;
World world = Objects.requireNonNull(condition.getOfflinePlayer().getPlayer()).getWorld();
if (world.hasStorm()) currentWeather = "rainstorm";
if (world.isClearWeather()) currentWeather = "clear";
else if (world.isThundering()) currentWeather = "thunder";
else if (world.isClearWeather()) currentWeather = "clear";
else currentWeather = "rain";
for (String weather : weathers)
if (weather.equalsIgnoreCase(currentWeather))

View File

@@ -33,11 +33,6 @@ conditional-text:
conditions:
weather:
- thunder
priority_4:
text: 'Rainstorm'
conditions:
weather:
- rainstorm
# https://mo-mi.gitbook.io/xiaomomi-plugins/plugin-wiki/customnameplates/custom-placeholders/nameplate-text
nameplate-text: