File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
arclight-common/src/main/java/io/izzel/arclight/common/mod Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ public class ArclightConstants {
24
24
*/
25
25
public static final int ARCLIGHT_DIMENSION = 0xA2c11947 ;
26
26
27
+ public static final int PACKET_RECORDER_PERIOD_SEC = 5 *60 ;
28
+
27
29
public static final int MAX_C2S_CUSTOM_PAYLOAD_SIZE = 32767 ; //TODO: Change with update
28
30
29
31
public static int currentTick ;
Original file line number Diff line number Diff line change 1
1
package io .izzel .arclight .common .mod .plugin .messaging ;
2
2
3
+ import io .izzel .arclight .common .mod .ArclightConstants ;
3
4
import io .izzel .arclight .common .mod .server .ArclightServer ;
4
5
import it .unimi .dsi .fastutil .objects .Object2IntArrayMap ;
5
6
import net .minecraft .Util ;
@@ -21,7 +22,7 @@ public void recordUnknown(String id) {
21
22
22
23
public void update () {
23
24
long now = Util .getMillis ();
24
- if (now - lastUpdate > 5 * 60 *1000 ) {
25
+ if (Math . abs ( now - lastUpdate ) > ArclightConstants . PACKET_RECORDER_PERIOD_SEC *1000 ) {
25
26
consumeAndLog ();
26
27
lastUpdate = now ;
27
28
}
You can’t perform that action at this time.
0 commit comments