generated from MrSphay/codex-agent-repository-kit
This commit is contained in:
@@ -555,12 +555,12 @@ public class ExplosionOverhaul {
|
||||
public static void onClientTick(TickEvent.ClientTickEvent event) {
|
||||
if (event.phase == TickEvent.Phase.END) {
|
||||
ClientEffects.onClientTick();
|
||||
if (!hasPreWarmed && Minecraft.m_91087_().f_91073_ != null && Minecraft.m_91087_().f_91074_ != null) {
|
||||
if (!hasPreWarmed && Minecraft.getInstance().f_91073_ != null && Minecraft.getInstance().player != null) {
|
||||
LOGGER.info("Pre-warming explosion particle render pipeline...");
|
||||
ClientLevel level = Minecraft.m_91087_().f_91073_;
|
||||
double x = Minecraft.m_91087_().f_91074_.m_20185_();
|
||||
ClientLevel level = Minecraft.getInstance().f_91073_;
|
||||
double x = Minecraft.getInstance().player.m_20185_();
|
||||
double y = -200.0;
|
||||
double z = Minecraft.m_91087_().f_91074_.m_20189_();
|
||||
double z = Minecraft.getInstance().player.m_20189_();
|
||||
level.m_7106_((ParticleOptions)new PlasmaParticleOptions(1.0f), x, y, z, 0.0, 0.0, 0.0);
|
||||
LOGGER.info("Pre-warming 'glow' animation...");
|
||||
level.m_7106_((ParticleOptions)new CustomGlowParticleOptions(0, 1.0f, 0.01f, 0, (float)y, 4.0f, 0.0f), x, y, z, 0.0, 0.0, 0.0);
|
||||
@@ -606,7 +606,7 @@ public class ExplosionOverhaul {
|
||||
return;
|
||||
}
|
||||
LOGGER.info("Preloading {} textures from '{}' to GPU...", (Object)locationsToLoad.size(), (Object)ExplosionOverhaul.MODID);
|
||||
TextureManager textureManager = Minecraft.m_91087_().m_91097_();
|
||||
TextureManager textureManager = Minecraft.getInstance().m_91097_();
|
||||
for (ResourceLocation location : locationsToLoad) {
|
||||
textureManager.m_118506_(location);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user