mirror of
https://github.com/Xiao-MoMi/Custom-Nameplates.git
synced 2025-12-26 02:19:28 +00:00
@@ -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))
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user