mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-03 23:07:40 +01:00
a21b45bf17
This isn't used anywhere and only adds to the load. This change should be considered experiemental however as it needs testing
31 lines
1.2 KiB
Diff
31 lines
1.2 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Zach Brown <1254957+zachbr@users.noreply.github.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 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
|
|
--- a/src/main/java/net/minecraft/server/TileEntityChest.java
|
|
+++ b/src/main/java/net/minecraft/server/TileEntityChest.java
|
|
@@ -0,0 +0,0 @@ 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;
|
|
@@ -0,0 +0,0 @@ public class TileEntityChest extends TileEntity implements IInventory {
|
|
}
|
|
}
|
|
}
|
|
+ PaperSpigot end */
|
|
|
|
this.n = this.m;
|
|
f = 0.1F;
|
|
--
|