2016-02-05 10:12:16 +00:00
|
|
|
From 4848135e06d958fd85b7cda96e131280270fb39c Mon Sep 17 00:00:00 2001
|
2016-01-11 02:47:21 +00:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Sun, 10 Jan 2016 20:40:33 -0600
|
|
|
|
Subject: [PATCH] Disable chest cat detection
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/BlockChest.java b/src/main/java/net/minecraft/server/BlockChest.java
|
|
|
|
index f725aea..eed516e 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/BlockChest.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/BlockChest.java
|
|
|
|
@@ -410,6 +410,11 @@ public class BlockChest extends BlockContainer {
|
|
|
|
}
|
|
|
|
|
|
|
|
private boolean p(World world, BlockPosition blockposition) {
|
|
|
|
+ // PaperSpigot start - Option to disable chest's cat detection (Performance++)
|
|
|
|
+ if (world.paperSpigotConfig.disableChestCatDetection) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ // PaperSpigot end
|
|
|
|
Iterator iterator = world.a(EntityOcelot.class, new AxisAlignedBB((double) blockposition.getX(), (double) (blockposition.getY() + 1), (double) blockposition.getZ(), (double) (blockposition.getX() + 1), (double) (blockposition.getY() + 2), (double) (blockposition.getZ() + 1))).iterator();
|
|
|
|
|
|
|
|
EntityOcelot entityocelot;
|
|
|
|
diff --git a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
2016-02-05 10:12:16 +00:00
|
|
|
index 7eb3463..b6ce3bb 100644
|
2016-01-11 02:47:21 +00:00
|
|
|
--- a/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
|
|
|
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
2016-01-17 03:04:07 +00:00
|
|
|
@@ -193,10 +193,12 @@ public class PaperSpigotWorldConfig
|
2016-01-11 02:47:21 +00:00
|
|
|
|
|
|
|
public boolean boatsDropBoats;
|
|
|
|
public boolean disablePlayerCrits;
|
|
|
|
+ public boolean disableChestCatDetection;
|
|
|
|
private void mechanicsChanges()
|
|
|
|
{
|
|
|
|
boatsDropBoats = getBoolean( "game-mechanics.boats-drop-boats", false );
|
|
|
|
disablePlayerCrits = getBoolean( "game-mechanics.disable-player-crits", false );
|
|
|
|
+ disableChestCatDetection = getBoolean( "game-mechanics.disable-chest-cat-detection", false );
|
|
|
|
}
|
|
|
|
|
|
|
|
public boolean netherVoidTopDamage;
|
|
|
|
--
|
2016-02-05 10:12:16 +00:00
|
|
|
2.7.0.windows.2
|
2016-01-11 02:47:21 +00:00
|
|
|
|