Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-16 04:50:05 +01:00
6f2009754d
At the time this was re-added, there was concern around how the JIT would handle the system property that enabled it. This shouldn't be a problem, and as such we no longer need to block access to it. The Vanilla Method Profiler will not provide much to most users however there is no harm in providing it as an option. For most users, the recommended and supported method for determining performance issues with Paper will continue to be Timings.
29 Zeilen
1.1 KiB
Diff
29 Zeilen
1.1 KiB
Diff
From 1e2a62261aadcd7ed15ca4cd0af79cf14eb7058f Mon Sep 17 00:00:00 2001
|
|
From: Aikar <aikar@aikar.co>
|
|
Date: Wed, 24 Jan 2018 20:06:39 -0500
|
|
Subject: [PATCH] MC-99321 - Dont check for blocked double chest for hoppers
|
|
etc
|
|
|
|
This is a source of MAJOR lag for hoppers, as well as a gameplay bug.
|
|
|
|
This removes the necessity to disable the cat on chest behavior to improve performance.
|
|
|
|
now performance will be improved even if you have cat chest detection on.
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/BlockChest.java b/src/main/java/net/minecraft/server/BlockChest.java
|
|
index 90267a1f..91d3308c 100644
|
|
--- a/src/main/java/net/minecraft/server/BlockChest.java
|
|
+++ b/src/main/java/net/minecraft/server/BlockChest.java
|
|
@@ -348,7 +348,7 @@ public class BlockChest extends BlockTileEntity {
|
|
// Paper end
|
|
|
|
if (block == this) {
|
|
- if (this.e(world, blockposition1)) {
|
|
+ if (!flag && this.e(world, blockposition1)) { // Paper - check for allowBlocked flag - MC-99321
|
|
return null;
|
|
}
|
|
|
|
--
|
|
2.14.3
|
|
|