mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 04:55:47 +01:00
05466e3b47
Upstream has released updates that appear to apply compile correctly. This update has not been tested by PaperMC and as with ANY update, please do your own testing. Bukkit Changes: d2834556 SPIGOT-4219: Event for PigZombies angering. CraftBukkit Changes:a9c796f1
SPIGOT-4184: Fix furnaces not matching Vanilla smelt or animations195f071e
SPIGOT-4219: Event for PigZombies angering.5e3082c7
SPIGOT-4230: Improve legacy block types
47 lines
1.6 KiB
Diff
47 lines
1.6 KiB
Diff
From ca661277ab0b0df75c267368ac65590de2561fff Mon Sep 17 00:00:00 2001
|
|
From: Aikar <aikar@aikar.co>
|
|
Date: Tue, 5 Apr 2016 21:38:58 -0400
|
|
Subject: [PATCH] Remove Debug checks from DataBits
|
|
|
|
These are super hot and causing noticeable hits
|
|
|
|
Before: http://i.imgur.com/nQsMzAE.png
|
|
After: http://i.imgur.com/nJ46crB.png
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/DataBits.java b/src/main/java/net/minecraft/server/DataBits.java
|
|
index d24ec3d53c..0fb3162e65 100644
|
|
--- a/src/main/java/net/minecraft/server/DataBits.java
|
|
+++ b/src/main/java/net/minecraft/server/DataBits.java
|
|
@@ -14,7 +14,7 @@ public class DataBits {
|
|
}
|
|
|
|
public DataBits(int i, int j, long[] along) {
|
|
- Validate.inclusiveBetween(1L, 32L, (long) i);
|
|
+ //Validate.inclusiveBetween(1L, 32L, (long) i); // Paper
|
|
this.d = j;
|
|
this.b = i;
|
|
this.a = along;
|
|
@@ -27,8 +27,8 @@ public class DataBits {
|
|
}
|
|
|
|
public void a(int i, int j) {
|
|
- Validate.inclusiveBetween(0L, (long) (this.d - 1), (long) i);
|
|
- Validate.inclusiveBetween(0L, this.c, (long) j);
|
|
+ //Validate.inclusiveBetween(0L, (long) (this.d - 1), (long) i); // Paper
|
|
+ //Validate.inclusiveBetween(0L, this.c, (long) j); // Paper
|
|
int k = i * this.b;
|
|
int l = k / 64;
|
|
int i1 = ((i + 1) * this.b - 1) / 64;
|
|
@@ -45,7 +45,7 @@ public class DataBits {
|
|
}
|
|
|
|
public int a(int i) {
|
|
- Validate.inclusiveBetween(0L, (long) (this.d - 1), (long) i);
|
|
+ //Validate.inclusiveBetween(0L, (long) (this.d - 1), (long) i); // Paper
|
|
int j = i * this.b;
|
|
int k = j / 64;
|
|
int l = ((i + 1) * this.b - 1) / 64;
|
|
--
|
|
2.18.0
|
|
|