9
0
mirror of https://github.com/VolmitSoftware/Iris.git synced 2025-12-29 12:09:07 +00:00

For fuck's sake, why haven't I done this earlier

This commit is contained in:
RePixelatedMC
2023-11-24 15:38:12 +01:00
parent 5fc012a557
commit de0e124ebb

View File

@@ -18,17 +18,31 @@
package com.volmit.iris.engine.object;
import com.volmit.iris.Iris;
import lombok.Data;
@Data
public class IrisEngineStatistics {
private int totalHotloads = 0;
private int chunksGenerated = 0;
private String IrisCreationVersion = getVersion();
public void generatedChunk() {
chunksGenerated++;
}
public String getVersion() {
String input = Iris.instance.getDescription().getVersion();
int hyphenIndex = input.indexOf('-');
String result = null;
if (hyphenIndex != -1) {
result = input.substring(0, hyphenIndex);
System.out.println(result);
}
return result;
}
public void hotloaded() {
totalHotloads++;
}