This commit is contained in:
Alexdoru authored and Jason Mitchell committed 2023-01-28 18:02:41 -08:00
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);
}