Fixed pathetic oversight in EaglerXBungee skin DL ratelimits

This commit is contained in:
LAX1DUDE 2023-01-05 17:57:09 -08:00
parent 8c67503984
commit 1fa34b5480
4 changed files with 5 additions and 2 deletions

View File

@ -30,6 +30,9 @@ public class SimpleRateLimiter {
if(decr > 0) { if(decr > 0) {
timer += decr * t; timer += decr * t;
count -= decr; count -= decr;
if(count < 0) {
count = 0;
}
} }
if(count >= maxPerMinute) { if(count >= maxPerMinute) {
return false; return false;

View File

@ -1,5 +1,5 @@
name: EaglercraftXBungee name: EaglercraftXBungee
main: net.lax1dude.eaglercraft.v1_8.plugin.gateway_bungeecord.EaglerXBungee main: net.lax1dude.eaglercraft.v1_8.plugin.gateway_bungeecord.EaglerXBungee
version: 1.0.2 version: 1.0.3
description: Plugin to allow EaglercraftX 1.8 players to join your network, or allow EaglercraftX 1.8 players to use your network as a proxy to join other networks description: Plugin to allow EaglercraftX 1.8 players to join your network, or allow EaglercraftX 1.8 players to use your network as a proxy to join other networks
author: lax1dude author: lax1dude

View File

@ -1 +1 @@
1.0.2 1.0.3