Skip to content

Commit

Permalink
Fix Infinite Emitter breaking particles (#93)
Browse files Browse the repository at this point in the history
  • Loading branch information
ALongStringOfNumbers authored Aug 21, 2021
1 parent f8f1284 commit 0dc9f97
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
import gregtech.api.metatileentity.MetaTileEntityHolder;
import gregtech.api.render.Textures;
import gregtech.api.util.GTUtility;
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
import net.minecraft.client.resources.I18n;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
Expand All @@ -27,6 +28,7 @@
import net.minecraft.world.World;
import net.minecraftforge.common.capabilities.Capability;
import org.apache.commons.lang3.ArrayUtils;
import org.apache.commons.lang3.tuple.Pair;

import javax.annotation.Nullable;
import java.util.List;
Expand Down Expand Up @@ -54,6 +56,11 @@ public void renderMetaTileEntity(CCRenderState renderState, Matrix4 translation,
}
}

@Override
public Pair<TextureAtlasSprite, Integer> getParticleTexture() {
return Pair.of(Textures.VOLTAGE_CASINGS[this.setTier].getParticleSprite(), this.getPaintingColor());
}

@Override
public MetaTileEntity createMetaTileEntity(MetaTileEntityHolder holder) {
return new MetaTileEntityCreativeEnergy();
Expand Down

0 comments on commit 0dc9f97

Please sign in to comment.