mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-22 04:52:25 +00:00
Fix transmitter render pass to stop things occluding incorrectly, make lasers get stronger and weaker as they start and stop
This commit is contained in:
1 parent
e35a673c8b
commit
a2bb224bf5
2 files changed
+5
-2
No files matched your search
@@ -11,8 +11,11 @@ import net.minecraft.util.ResourceLocation;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import cpw.mods.fml.client.FMLClientHandler;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
public class EntityLaser extends EntityFX
|
||||
{
|
||||
double length;
|
||||
@@ -21,7 +24,7 @@ public class EntityLaser extends EntityFX
|
||||
public EntityLaser(World world, Coord4D start, Coord4D end, ForgeDirection direction)
|
||||
{
|
||||
super(world, (start.xCoord + end.xCoord)/2D + 0.5D, (start.yCoord + end.yCoord)/2D + 0.5D, (start.zCoord+end.zCoord)/2D + 0.5D);
|
||||
particleMaxAge = 1;
|
||||
particleMaxAge = 5;
|
||||
particleRed = 1;
|
||||
particleGreen = 0;
|
||||
particleBlue = 0;
|
||||
|
||||
@@ -312,7 +312,7 @@ public abstract class PartSidedPipe extends TMultiPart implements TSlottedPart,
|
||||
@SideOnly(Side.CLIENT)
|
||||
public boolean renderStatic(Vector3 pos, int pass)
|
||||
{
|
||||
if(pass == 1)
|
||||
if(pass == 0)
|
||||
{
|
||||
RenderPartTransmitter.getInstance().renderStatic(this);
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user