3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-11-16 21:10:17 +01:00

Fixed translation issue in EntityMinecart. Addresses BUKKIT-980

Dieser Commit ist enthalten in:
EvilSeph 2012-03-16 02:38:57 -04:00
Ursprung 241cf1c664
Commit fc697a4f44

Datei anzeigen

@ -753,11 +753,11 @@ public class EntityMinecart extends Entity implements IInventory {
if (collisionEvent.isCancelled()) { if (collisionEvent.isCancelled()) {
return; 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); entity.mount(this);
} }
// CraftBukkit end
double d0 = entity.locX - this.locX; double d0 = entity.locX - this.locX;
double d1 = entity.locZ - this.locZ; double d1 = entity.locZ - this.locZ;