Fixed large gears not rendering when not directly looked at
This commit is contained in:
parent
8f7ac50fbf
commit
e190a400b7
2 changed files with 10 additions and 2 deletions
|
@ -9,14 +9,13 @@ import net.minecraft.entity.player.EntityPlayer;
|
|||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import net.minecraft.util.AxisAlignedBB;
|
||||
import net.minecraft.util.MovingObjectPosition;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.ForgeDirection;
|
||||
import resonantinduction.api.mechanical.IMechanical;
|
||||
import resonantinduction.core.Reference;
|
||||
import resonantinduction.mechanical.Mechanical;
|
||||
import resonantinduction.mechanical.gear.ConnectionLogic.ConnectionGearLarge;
|
||||
import resonantinduction.mechanical.gear.ConnectionLogic.ConnectionGearSmall;
|
||||
import resonantinduction.mechanical.network.PartMechanical;
|
||||
import calclavia.lib.multiblock.reference.IMultiBlockStructure;
|
||||
import calclavia.lib.multiblock.reference.MultiBlockHandler;
|
||||
|
@ -55,6 +54,7 @@ public class PartGear extends PartMechanical implements IMechanical, IMultiBlock
|
|||
}
|
||||
|
||||
private int manualCrankTime = 0;
|
||||
private int multiBlockRadius = 1;
|
||||
|
||||
@Override
|
||||
public void update()
|
||||
|
@ -577,4 +577,11 @@ public class PartGear extends PartMechanical implements IMechanical, IMultiBlock
|
|||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public Cuboid6 getRenderBounds()
|
||||
{
|
||||
return Cuboid6.full.copy().expand(multiBlockRadius);
|
||||
}
|
||||
}
|
|
@ -7,6 +7,7 @@ import org.lwjgl.opengl.GL11;
|
|||
|
||||
import resonantinduction.core.Reference;
|
||||
import resonantinduction.core.render.RenderImprintable;
|
||||
import resonantinduction.mechanical.logistic.belt.ModelManipulator;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
|
||||
|
|
Loading…
Reference in a new issue