mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 21:19:00 +01:00
Fixed translation issue in EntityMinecart. Addresses BUKKIT-980
This commit is contained in:
parent
241cf1c664
commit
fc697a4f44
@ -753,11 +753,11 @@ public class EntityMinecart extends Entity implements IInventory {
|
||||
if (collisionEvent.isCancelled()) {
|
||||
return;
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
if (entity instanceof EntityLiving && !(entity instanceof EntityHuman) && this.type == 0 && this.motX * this.motX + this.motZ * this.motZ > 0.01D && this.passenger == null && entity.vehicle == null) {
|
||||
if (entity instanceof EntityLiving && !(entity instanceof EntityHuman) && !(entity instanceof EntityIronGolem) && this.type == 0 && this.motX * this.motX + this.motZ * this.motZ > 0.01D && this.passenger == null && entity.vehicle == null) {
|
||||
entity.mount(this);
|
||||
}
|
||||
// CraftBukkit end
|
||||
|
||||
double d0 = entity.locX - this.locX;
|
||||
double d1 = entity.locZ - this.locZ;
|
||||
|
Loading…
Reference in New Issue
Block a user