Upstream merge

By: md_5 <git@md-5.net>
This commit is contained in:
Spigot
2014-05-27 17:40:02 +10:00
parent 955a0fb081
commit 23c4e709bc
10 changed files with 65 additions and 34 deletions

View File

@@ -1,4 +1,4 @@
From d5d17c04b5a9c0f672c267ab36b7dc15eb1dcd2d Mon Sep 17 00:00:00 2001
From 36860f6c094b72ec31c6a712ffcb00da1ef46451 Mon Sep 17 00:00:00 2001
From: Aikar <aikar@aikar.co>
Date: Fri, 31 Jan 2014 11:18:34 -0500
Subject: [PATCH] Cap Entity Collisions
@@ -7,7 +7,7 @@ Limit a single entity to colliding a max of configurable times per tick.
This will alleviate issues where living entities are hoarded in 1x1 pens.
diff --git a/src/main/java/net/minecraft/server/Entity.java b/src/main/java/net/minecraft/server/Entity.java
index c4bdccf..c542460 100644
index 73d3b89..7f80895 100644
--- a/src/main/java/net/minecraft/server/Entity.java
+++ b/src/main/java/net/minecraft/server/Entity.java
@@ -1023,6 +1023,7 @@ public abstract class Entity {
@@ -19,10 +19,10 @@ index c4bdccf..c542460 100644
if (entity.passenger != this && entity.vehicle != this) {
double d0 = entity.locX - this.locX;
diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java
index dad8964..234d7db 100644
index dbe58b1..c821e78 100644
--- a/src/main/java/net/minecraft/server/EntityLiving.java
+++ b/src/main/java/net/minecraft/server/EntityLiving.java
@@ -1495,7 +1495,9 @@ public abstract class EntityLiving extends Entity {
@@ -1496,7 +1496,9 @@ public abstract class EntityLiving extends Entity {
List list = this.world.getEntities(this, this.boundingBox.grow(0.20000000298023224D, 0.0D, 0.20000000298023224D));
if (this.R() && list != null && !list.isEmpty()) { // Spigot: Add this.R() condition
@@ -32,7 +32,7 @@ index dad8964..234d7db 100644
Entity entity = (Entity) list.get(i);
// TODO better check now?
@@ -1506,9 +1508,12 @@ public abstract class EntityLiving extends Entity {
@@ -1507,9 +1509,12 @@ public abstract class EntityLiving extends Entity {
// CraftBukkit end
if (entity.R()) {