Reduce decompile API blockers
Some checks failed
Build / build (push) Failing after 6m48s

This commit is contained in:
MrSphay
2026-05-04 13:33:41 +02:00
parent e41adca82b
commit 93c8d5efae
40 changed files with 472 additions and 1083 deletions

View File

@@ -39,7 +39,7 @@ public class ExplosionTextureManager {
public void reload() {
this.clear();
if (Minecraft.m_91087_().m_91098_() == null) {
if (Minecraft.getInstance().m_91098_() == null) {
return;
}
ExplosionOverhaul.LOGGER.info("Reloading Explosion Texture Manager...");
@@ -71,10 +71,10 @@ public class ExplosionTextureManager {
private void loadTexture(int index, String path) {
ResourceLocation fullPath = new ResourceLocation("explosionoverhaul", BASE_PATH + path);
try {
InputStream is = ((Resource)Minecraft.m_91087_().m_91098_().m_213713_(fullPath).get()).m_215507_();
InputStream is = ((Resource)Minecraft.getInstance().m_91098_().m_213713_(fullPath).get()).m_215507_();
NativeImage image = NativeImage.m_85058_((InputStream)is);
DynamicTexture texture = new DynamicTexture(image);
ResourceLocation loc = Minecraft.m_91087_().m_91097_().m_118490_("explosion_sheet_" + index, texture);
ResourceLocation loc = Minecraft.getInstance().m_91097_().m_118490_("explosion_sheet_" + index, texture);
this.textures.put(index, texture);
this.resourceLocations.put(index, loc);
}