mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-28 07:56:01 +00:00
spotless
This commit is contained in:
1 parent
d12e70dd52
commit
59f3b5b72a
6 files changed
+33
-20
No files matched your search
@@ -646,7 +646,12 @@ public class CartEntity extends Entity implements IInventory, IEntityAdditionalS
|
||||
public void applyEntityCollision(Entity par1Entity) {
|
||||
if (!this.worldObj.isRemote) {
|
||||
if (par1Entity != this.riddenByEntity) {
|
||||
if (par1Entity instanceof EntityLiving && !(par1Entity instanceof EntityIronGolem) && canBeRidden() && this.motionX * this.motionX + this.motionZ * this.motionZ > 0.01D && this.riddenByEntity == null && par1Entity.ridingEntity == null) {
|
||||
if (par1Entity instanceof EntityLiving
|
||||
&& !(par1Entity instanceof EntityIronGolem)
|
||||
&& canBeRidden()
|
||||
&& this.motionX * this.motionX + this.motionZ * this.motionZ > 0.01D
|
||||
&& this.riddenByEntity == null
|
||||
&& par1Entity.ridingEntity == null) {
|
||||
par1Entity.mountEntity(this);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user