From 78c1b5be06695745459386515833b15472eace1d Mon Sep 17 00:00:00 2001 From: "N." <42706907+iamnoksio@users.noreply.github.com> Date: Tue, 13 Aug 2024 23:02:58 -0400 Subject: [PATCH] Always tick active container --- .../src/main/java/net/minecraft/server/EntityPlayer.java | 8 ++------ .../org/github/paperspigot/PaperSpigotWorldConfig.java | 6 ------ 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/nPaper-Server/src/main/java/net/minecraft/server/EntityPlayer.java b/nPaper-Server/src/main/java/net/minecraft/server/EntityPlayer.java index 78154747..4ae9816b 100644 --- a/nPaper-Server/src/main/java/net/minecraft/server/EntityPlayer.java +++ b/nPaper-Server/src/main/java/net/minecraft/server/EntityPlayer.java @@ -64,7 +64,6 @@ public class EntityPlayer extends EntityHuman implements ICrafting { // Spigot start public boolean collidesWithEntities = true; public int viewDistance; // PaperSpigot - Player view distance API - private int containerUpdateDelay; // PaperSpigot @Override public boolean R() @@ -191,11 +190,8 @@ public void h() { --this.noDamageTicks; } - // PaperSpigot start - Configurable container update tick rate - if (--containerUpdateDelay <= 0) { - this.activeContainer.b(); - containerUpdateDelay = world.paperSpigotConfig.containerUpdateTickRate; - } + this.activeContainer.b(); // Rinny - always tick activeContainer + // PaperSpigot end if (!this.world.isStatic && !this.activeContainer.a((EntityHuman) this)) { this.closeInventory(); diff --git a/nPaper-Server/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java b/nPaper-Server/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java index dc58b5cd..fcd7e6ce 100644 --- a/nPaper-Server/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java +++ b/nPaper-Server/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java @@ -324,12 +324,6 @@ private void cacheChunkMaps() cacheChunkMaps = getBoolean( "cache-chunk-maps", false ); } - public int containerUpdateTickRate; - private void containerUpdateTickRate() - { - containerUpdateTickRate = getInt( "container-update-tick-rate", 1 ); - } - public float tntExplosionVolume; private void tntExplosionVolume() {