Ignore ratelimit for local

This commit is contained in:
Anuken
2023-08-17 09:17:47 -04:00
parent 63d036d6ed
commit 2715d4954f
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -69,7 +69,7 @@ public class Administration{
if(action.type != ActionType.breakBlock && if(action.type != ActionType.breakBlock &&
action.type != ActionType.placeBlock && action.type != ActionType.placeBlock &&
action.type != ActionType.commandUnits && action.type != ActionType.commandUnits &&
Config.antiSpam.bool()){ Config.antiSpam.bool() && !player.isLocal()){
Ratekeeper rate = action.player.getInfo().rate; Ratekeeper rate = action.player.getInfo().rate;
if(rate.allow(Config.interactRateWindow.num() * 1000L, Config.interactRateLimit.num())){ if(rate.allow(Config.interactRateWindow.num() * 1000L, Config.interactRateLimit.num())){
+1 -1
View File
@@ -25,4 +25,4 @@ org.gradle.caching=true
#used for slow jitpack builds; TODO see if this actually works #used for slow jitpack builds; TODO see if this actually works
org.gradle.internal.http.socketTimeout=100000 org.gradle.internal.http.socketTimeout=100000
org.gradle.internal.http.connectionTimeout=100000 org.gradle.internal.http.connectionTimeout=100000
archash=4be3d22cf6 archash=5baefbb2af