Aim towards real 1.14
This commit is contained in:
@@ -5,7 +5,7 @@ Subject: [PATCH] Configurable container update tick rate
|
||||
|
||||
|
||||
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||
index 7c16ec9970..4266a87fe3 100644
|
||||
index e4e00e2e1c..d663b15ceb 100644
|
||||
--- a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||
+++ b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
|
||||
@@ -0,0 +0,0 @@ public class PaperWorldConfig {
|
||||
@@ -19,11 +19,11 @@ index 7c16ec9970..4266a87fe3 100644
|
||||
+ }
|
||||
}
|
||||
diff --git a/src/main/java/net/minecraft/server/EntityPlayer.java b/src/main/java/net/minecraft/server/EntityPlayer.java
|
||||
index c4a55c6a1f..2665faa6c5 100644
|
||||
index fbde752052..dbb9a9a694 100644
|
||||
--- a/src/main/java/net/minecraft/server/EntityPlayer.java
|
||||
+++ b/src/main/java/net/minecraft/server/EntityPlayer.java
|
||||
@@ -0,0 +0,0 @@ public class EntityPlayer extends EntityHuman implements ICrafting {
|
||||
public boolean f;
|
||||
public boolean e;
|
||||
public int ping;
|
||||
public boolean viewingCredits;
|
||||
+ private int containerUpdateDelay; // Paper
|
||||
@@ -34,10 +34,10 @@ index c4a55c6a1f..2665faa6c5 100644
|
||||
--this.noDamageTicks;
|
||||
}
|
||||
|
||||
- this.activeContainer.b();
|
||||
- this.activeContainer.c();
|
||||
+ // Paper start - Configurable container update tick rate
|
||||
+ if (--containerUpdateDelay <= 0) {
|
||||
+ this.activeContainer.b();
|
||||
+ this.activeContainer.c();
|
||||
+ containerUpdateDelay = world.paperConfig.containerUpdateTickRate;
|
||||
+ }
|
||||
+ // Paper end
|
||||
|
||||
Reference in New Issue
Block a user