Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-11-15 04:20:04 +01:00
Experimental: Don't tick chests
This isn't used anywhere and only adds to the load. This change should be considered experiemental however as it needs testing
Dieser Commit ist enthalten in:
Ursprung
42744f8853
Commit
bba86b10b2
33
CraftBukkit-Patches/0026-Don-t-tick-chests.patch
Normale Datei
33
CraftBukkit-Patches/0026-Don-t-tick-chests.patch
Normale Datei
@ -0,0 +1,33 @@
|
||||
From 725a7c49ea86a5c4c8edb8daa9b47e372c4634c2 Mon Sep 17 00:00:00 2001
|
||||
From: Zach Brown <Zbob750@live.com>
|
||||
Date: Mon, 7 Jul 2014 16:28:46 -0500
|
||||
Subject: [PATCH] Don't tick chests
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/server/TileEntityChest.java b/src/main/java/net/minecraft/server/TileEntityChest.java
|
||||
index 4f45dba..07c368d 100644
|
||||
--- a/src/main/java/net/minecraft/server/TileEntityChest.java
|
||||
+++ b/src/main/java/net/minecraft/server/TileEntityChest.java
|
||||
@@ -252,9 +252,10 @@ public class TileEntityChest extends TileEntity implements IInventory {
|
||||
super.h();
|
||||
if (this.world == null) return; // CraftBukkit
|
||||
this.i();
|
||||
- ++this.ticks;
|
||||
+ //++this.ticks; // PaperSpigot - Don't tick chests
|
||||
float f;
|
||||
|
||||
+ /* PaperSpigot start - Don't tick chests
|
||||
if (!this.world.isStatic && this.o != 0 && (this.ticks + this.x + this.y + this.z) % 200 == 0) {
|
||||
this.o = 0;
|
||||
f = 5.0F;
|
||||
@@ -273,6 +274,7 @@ public class TileEntityChest extends TileEntity implements IInventory {
|
||||
}
|
||||
}
|
||||
}
|
||||
+ PaperSpigot end */
|
||||
|
||||
this.n = this.m;
|
||||
f = 0.1F;
|
||||
--
|
||||
1.9.1
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren