Skip to content

Commit

Permalink
Always tick active container
Browse files Browse the repository at this point in the history
  • Loading branch information
iamnoksio authored Aug 14, 2024
1 parent 48ab882 commit 78c1b5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
{
Expand Down

0 comments on commit 78c1b5b

Please sign in to comment.