2016-03-29 01:01:42 +00:00
|
|
|
From bb0773bf6b5ee21d8bc8be6f66227fa59ef8335c Mon Sep 17 00:00:00 2001
|
2016-02-29 23:09:49 +00:00
|
|
|
From: Aikar <aikar@aikar.co>
|
|
|
|
Date: Thu, 3 Mar 2016 01:13:45 -0600
|
|
|
|
Subject: [PATCH] Disable chest cat detection
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
2016-03-29 01:01:42 +00:00
|
|
|
index 91eb5de..d5a1c47 100644
|
2016-02-29 23:09:49 +00:00
|
|
|
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
|
|
|
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
2016-03-19 02:10:20 +00:00
|
|
|
@@ -252,4 +252,9 @@ public class PaperWorldConfig {
|
2016-02-29 23:09:49 +00:00
|
|
|
private void containerUpdateTickRate() {
|
|
|
|
containerUpdateTickRate = getInt("container-update-tick-rate", 1);
|
|
|
|
}
|
|
|
|
+
|
|
|
|
+ public boolean disableChestCatDetection;
|
|
|
|
+ private void disableChestCatDetection() {
|
|
|
|
+ disableChestCatDetection = getBoolean("game-mechanics.disable-chest-cat-detection", false);
|
|
|
|
+ }
|
|
|
|
}
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/BlockChest.java b/src/main/java/net/minecraft/server/BlockChest.java
|
|
|
|
index 7d27317..ed8d1df 100644
|
|
|
|
--- a/src/main/java/net/minecraft/server/BlockChest.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/BlockChest.java
|
|
|
|
@@ -392,6 +392,11 @@ public class BlockChest extends BlockTileEntity {
|
|
|
|
}
|
|
|
|
|
|
|
|
private boolean j(World world, BlockPosition blockposition) {
|
|
|
|
+ // Paper start - Option ti dsiable chest cat detection
|
|
|
|
+ if (world.paperConfig.disableChestCatDetection) {
|
|
|
|
+ return false;
|
|
|
|
+ }
|
|
|
|
+ // Paper 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;
|
|
|
|
--
|
2016-03-29 01:01:42 +00:00
|
|
|
2.7.4
|
2016-02-29 23:09:49 +00:00
|
|
|
|