Phase 1 of MC 1.5 update. No this is not meant to compile, don't get your hopes up :p
By: md_5 <md_5@live.com.au>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
From a9525c7ac96f2692c584fcbd9c6469271e226364 Mon Sep 17 00:00:00 2001
|
||||
From 5cf1d81fb59b7d6941a6b5e502dcbcb7211fb32f Mon Sep 17 00:00:00 2001
|
||||
From: Aikar <aikar@aikar.co>
|
||||
Date: Fri, 18 Jan 2013 19:31:14 -0500
|
||||
Subject: [PATCH] Reduce number of LivingEntity collision checks.
|
||||
@@ -8,13 +8,13 @@ Subject: [PATCH] Reduce number of LivingEntity collision checks.
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityLiving.java b/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
index bd1aeaa..01b16ac 100644
|
||||
index 89ce129..86a0b6d 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityLiving.java
|
||||
@@ -1391,12 +1391,20 @@ public abstract class EntityLiving extends Entity {
|
||||
@@ -1427,12 +1427,20 @@ public abstract class EntityLiving extends Entity {
|
||||
}
|
||||
|
||||
protected void bd() {
|
||||
protected void bg() {
|
||||
+ // Spigot start
|
||||
+ boolean skip = false;
|
||||
+ if (!(this instanceof EntityPlayer) && this.ticksLived % 2 != 0) {
|
||||
@@ -29,9 +29,9 @@ index bd1aeaa..01b16ac 100644
|
||||
Entity entity = (Entity) list.get(i);
|
||||
|
||||
+ if (entity instanceof EntityLiving && skip) { continue; } // Spigot
|
||||
if (entity.M()) {
|
||||
if (entity.L()) {
|
||||
this.o(entity);
|
||||
}
|
||||
--
|
||||
1.8.1.1
|
||||
1.8.1-rc2
|
||||
|
||||
|
||||
Reference in New Issue
Block a user