generated from MrSphay/codex-agent-repository-kit
This commit is contained in:
@@ -48,11 +48,11 @@ public class DeafnessConcussionEffect {
|
||||
if (effectiveIntensity < 1.0E-4f) {
|
||||
return false;
|
||||
}
|
||||
Minecraft mc = Minecraft.m_91087_();
|
||||
if (mc == null || mc.f_91073_ == null || mc.f_91074_ == null) {
|
||||
Minecraft mc = Minecraft.getInstance();
|
||||
if (mc == null || mc.f_91073_ == null || mc.player == null) {
|
||||
return false;
|
||||
}
|
||||
Options options = mc.f_91066_;
|
||||
Options options = mc.options;
|
||||
if (options == null) {
|
||||
return false;
|
||||
}
|
||||
@@ -73,9 +73,9 @@ public class DeafnessConcussionEffect {
|
||||
phaseTicksTotal = DELAY_TICKS;
|
||||
}
|
||||
lastIntensity = currentIntensity;
|
||||
if (debugShowChat && (player = mc.f_91074_) != null) {
|
||||
if (debugShowChat && (player = mc.player) != null) {
|
||||
String msg = String.format("\u041f\u043e\u0442\u0443\u0436\u043d\u0456\u0441\u0442\u044c \u043a\u043e\u043d\u0442\u0443\u0437\u0456\u0457 %.1f%% (%s) \u2014 \u0421\u0438\u043b\u0430 \u0441\u043a\u0440\u0443\u0447\u0443\u0432\u0430\u043d\u043d\u044f %d%%, \u0427\u0430\u0441 \u0441\u043a\u0440\u0443\u0447\u0443\u0432\u0430\u043d\u043d\u044f %.1f \u0441\u0435\u043a", effectivePercent, visibility, intensityPercent, silentSeconds);
|
||||
player.m_5661_((Component)Component.m_237113_((String)msg).m_130940_(ChatFormatting.WHITE), false);
|
||||
player.m_5661_((Component)Component.literal((String)msg).m_130940_(ChatFormatting.WHITE), false);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
@@ -88,8 +88,8 @@ public class DeafnessConcussionEffect {
|
||||
if (phase == Phase.NONE) {
|
||||
return;
|
||||
}
|
||||
Minecraft mc = Minecraft.m_91087_();
|
||||
if (mc == null || mc.f_91066_ == null) {
|
||||
Minecraft mc = Minecraft.getInstance();
|
||||
if (mc == null || mc.options == null) {
|
||||
DeafnessConcussionEffect.resetVolume();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user