Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-17 20:10:10 +01:00
Correct formatting of the "Configurable UserCache cap" patch
Dieser Commit ist enthalten in:
Ursprung
6cd2b27743
Commit
7fcaf3f2c7
@ -1,4 +1,4 @@
|
|||||||
From 1628159293d9e528cfdb23dd1a98a45cac8394c3 Mon Sep 17 00:00:00 2001
|
From 16e041fdc87d319ec4d4546ceef8a0dbf6f0689e Mon Sep 17 00:00:00 2001
|
||||||
From: drXor <mcyoungsota@gmail.com>
|
From: drXor <mcyoungsota@gmail.com>
|
||||||
Date: Fri, 25 Apr 2014 18:17:30 -0400
|
Date: Fri, 25 Apr 2014 18:17:30 -0400
|
||||||
Subject: [PATCH] Configurable UserCache cap
|
Subject: [PATCH] Configurable UserCache cap
|
||||||
@ -18,7 +18,7 @@ index bcccaa9..ee8b6d6 100644
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
|
diff --git a/src/main/java/org/spigotmc/SpigotConfig.java b/src/main/java/org/spigotmc/SpigotConfig.java
|
||||||
index 4703768..57b748a 100644
|
index 4703768..1d35846 100644
|
||||||
--- a/src/main/java/org/spigotmc/SpigotConfig.java
|
--- a/src/main/java/org/spigotmc/SpigotConfig.java
|
||||||
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
|
+++ b/src/main/java/org/spigotmc/SpigotConfig.java
|
||||||
@@ -298,4 +298,10 @@ public class SpigotConfig
|
@@ -298,4 +298,10 @@ public class SpigotConfig
|
||||||
@ -29,7 +29,7 @@ index 4703768..57b748a 100644
|
|||||||
+ public static int userCacheCap;
|
+ public static int userCacheCap;
|
||||||
+ private static void userCacheCap()
|
+ private static void userCacheCap()
|
||||||
+ {
|
+ {
|
||||||
+ userCacheCap = getInt("settings.user-cache-size", 1000);
|
+ userCacheCap = getInt( "settings.user-cache-size", 1000 );
|
||||||
+ }
|
+ }
|
||||||
}
|
}
|
||||||
--
|
--
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren