This commit is contained in:
Electroblob77
2020-06-18 16:27:09 +01:00
parent f7f9190227
commit 3bc2ff2853
2 changed files with 2 additions and 2 deletions
@@ -28,7 +28,7 @@ import java.util.List;
* <br>
* <i>N.B. This doesn't cover item models, and all of the code/model solutions to this that I have tried haven't worked.
* However, I noticed that the shade tag seems to work perfectly for items, so instead I've simply duplicated the block
* models into the item models folder and add {@code "shade":false} where appropriate. (If it works, it works, right?)</i>
* models into the item models folder and add {@code "shade":false} where appropriate. (If it works, it works, right?)</i>
*
* @author Electroblob
* @author raoulvdberge
@@ -83,7 +83,7 @@ public abstract class ParticleTargeted extends ParticleWizardry {
float z = (float)(this.prevPosZ + (this.posZ - this.prevPosZ) * (double)partialTicks);
// Translates the particle a short distance in front of the entity
if(this.entity != null && this.shouldApplyOriginOffset()){ // TODO: Replace with a protected boolean method
if(this.entity != null && this.shouldApplyOriginOffset()){
if(this.entity != viewer || Minecraft.getMinecraft().gameSettings.thirdPersonView != 0){
Vec3d look = entity.getLook(partialTicks).scale(THIRD_PERSON_AXIAL_OFFSET);
x += look.x;