generated from MrSphay/codex-agent-repository-kit
This commit is contained in:
@@ -88,8 +88,8 @@ public class ClientEffects {
|
||||
}
|
||||
|
||||
private static void handleTrackedSoundsTick() {
|
||||
Minecraft mc = Minecraft.m_91087_();
|
||||
if (mc.f_91074_ == null || mc.m_91106_() == null) {
|
||||
Minecraft mc = Minecraft.getInstance();
|
||||
if (mc.player == null || mc.m_91106_() == null) {
|
||||
return;
|
||||
}
|
||||
Iterator<TrackedSound> iterator = activeTrackedSounds.iterator();
|
||||
@@ -99,7 +99,7 @@ public class ClientEffects {
|
||||
iterator.remove();
|
||||
continue;
|
||||
}
|
||||
tracked.tick((Player)mc.f_91074_, mc.m_91106_(), mc.f_91074_.m_217043_());
|
||||
tracked.tick((Player)mc.player, mc.m_91106_(), mc.player.m_217043_());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,7 +139,7 @@ public class ClientEffects {
|
||||
}
|
||||
|
||||
public static void onClientTick() {
|
||||
if (Minecraft.m_91087_().m_91104_()) {
|
||||
if (Minecraft.getInstance().m_91104_()) {
|
||||
return;
|
||||
}
|
||||
Blur.onClientTick();
|
||||
@@ -171,13 +171,13 @@ public class ClientEffects {
|
||||
if (!((Boolean)Config.CLIENT.enableFlashEffect.get()).booleanValue()) {
|
||||
return;
|
||||
}
|
||||
Minecraft mc = Minecraft.m_91087_();
|
||||
if (mc.f_91074_ == null || activeFlashEffects.isEmpty()) {
|
||||
Minecraft mc = Minecraft.getInstance();
|
||||
if (mc.player == null || activeFlashEffects.isEmpty()) {
|
||||
return;
|
||||
}
|
||||
float maxOpacity = 0.0f;
|
||||
for (FlashEffect effect : activeFlashEffects) {
|
||||
float opacity = effect.getCurrentOpacity((Player)mc.f_91074_);
|
||||
float opacity = effect.getCurrentOpacity((Player)mc.player);
|
||||
if (!(opacity > maxOpacity)) continue;
|
||||
maxOpacity = opacity;
|
||||
}
|
||||
@@ -185,8 +185,8 @@ public class ClientEffects {
|
||||
return;
|
||||
}
|
||||
GuiGraphics guiGraphics = event.getGuiGraphics();
|
||||
int screenWidth = mc.m_91268_().m_85445_();
|
||||
int screenHeight = mc.m_91268_().m_85446_();
|
||||
int screenWidth = mc.getWindow().getGuiScaledWidth();
|
||||
int screenHeight = mc.getWindow().getGuiScaledHeight();
|
||||
ResourceLocation flashTexture = ResourceLocation.fromNamespaceAndPath((String)"explosionoverhaul", (String)"textures/effects/flash.png");
|
||||
RenderSystem.enableBlend();
|
||||
RenderSystem.defaultBlendFunc();
|
||||
@@ -230,8 +230,8 @@ public class ClientEffects {
|
||||
|
||||
public static void triggerAmbientCaveDust(float power) {
|
||||
int i;
|
||||
Minecraft mc = Minecraft.m_91087_();
|
||||
LocalPlayer player = mc.f_91074_;
|
||||
Minecraft mc = Minecraft.getInstance();
|
||||
LocalPlayer player = mc.player;
|
||||
ClientLevel level = mc.f_91073_;
|
||||
if (player == null || level == null) {
|
||||
return;
|
||||
@@ -255,8 +255,8 @@ public class ClientEffects {
|
||||
}
|
||||
|
||||
private static void handleCameraShakeTick() {
|
||||
Minecraft mc = Minecraft.m_91087_();
|
||||
LocalPlayer player = mc.f_91074_;
|
||||
Minecraft mc = Minecraft.getInstance();
|
||||
LocalPlayer player = mc.player;
|
||||
if (player == null) {
|
||||
if (shakeDurationTicks > 0 || lastYawOffset != 0.0f || lastPitchOffset != 0.0f) {
|
||||
lastYawOffset = 0.0f;
|
||||
@@ -293,7 +293,7 @@ public class ClientEffects {
|
||||
if (!((Boolean)Config.CLIENT.enableLineSparks.get()).booleanValue()) {
|
||||
return;
|
||||
}
|
||||
Minecraft mc = Minecraft.m_91087_();
|
||||
Minecraft mc = Minecraft.getInstance();
|
||||
ClientLevel level = mc.f_91073_;
|
||||
if (level == null) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user