Move to configurate for paper.yml (#7609)
This commit is contained in:
		
					parent
					
						
							
								01cf853f91
							
						
					
				
			
			
				commit
				
					
						2168417373
					
				
			
		
					 193 changed files with 4094 additions and 3835 deletions
				
			
		| 
						 | 
				
			
			@ -4,20 +4,6 @@ Date: Sat, 16 Jun 2018 01:18:16 -0500
 | 
			
		|||
Subject: [PATCH] Make shield blocking delay configurable
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
diff --git a/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java b/src/main/java/com/destroystokyo/paper/PaperWorldConfig.java
 | 
			
		||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 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 {
 | 
			
		||||
         disableEnderpearlExploit = getBoolean("game-mechanics.disable-unloaded-chunk-enderpearl-exploit", disableEnderpearlExploit);
 | 
			
		||||
         log("Disable Unloaded Chunk Enderpearl Exploit: " + (disableEnderpearlExploit ? "enabled" : "disabled"));
 | 
			
		||||
     }
 | 
			
		||||
+
 | 
			
		||||
+    public int shieldBlockingDelay = 5;
 | 
			
		||||
+    private void shieldBlockingDelay() {
 | 
			
		||||
+        shieldBlockingDelay = getInt("game-mechanics.shield-blocking-delay", 5);
 | 
			
		||||
+    }
 | 
			
		||||
 }
 | 
			
		||||
diff --git a/src/main/java/net/minecraft/world/entity/LivingEntity.java b/src/main/java/net/minecraft/world/entity/LivingEntity.java
 | 
			
		||||
index 0000000000000000000000000000000000000000..0000000000000000000000000000000000000000 100644
 | 
			
		||||
--- a/src/main/java/net/minecraft/world/entity/LivingEntity.java
 | 
			
		||||
| 
						 | 
				
			
			@ -34,7 +20,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
 | 
			
		|||
     }
 | 
			
		||||
 
 | 
			
		||||
+    // Paper start
 | 
			
		||||
+    public int shieldBlockingDelay = level.paperConfig.shieldBlockingDelay;
 | 
			
		||||
+    public int shieldBlockingDelay = level.paperConfig().misc.shieldBlockingDelay;
 | 
			
		||||
+
 | 
			
		||||
+    public int getShieldBlockingDelay() {
 | 
			
		||||
+        return shieldBlockingDelay;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue