mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-18 14:11:32 +01:00
Fabric 1.20.4 (#3366)
This commit is contained in:
parent
23d2cc046e
commit
fa1ec4f4f6
@ -36,6 +36,7 @@ public class Contributors {
|
||||
new Contributor("Antonok", CODE),
|
||||
new Contributor("Argetan", CODE),
|
||||
new Contributor("Aurelien", CODE, LANG),
|
||||
new Contributor("Binero", CODE),
|
||||
new Contributor("BrainStone", CODE),
|
||||
new Contributor("Catalina", LANG),
|
||||
new Contributor("Elguerrero", LANG),
|
||||
|
@ -8,9 +8,9 @@ dependencies {
|
||||
|
||||
shadow "net.playeranalytics:platform-abstraction-layer-api:$palVersion"
|
||||
|
||||
minecraft "com.mojang:minecraft:1.20.2"
|
||||
mappings "net.fabricmc:yarn:1.20.2+build.1:v2"
|
||||
modImplementation "net.fabricmc:fabric-loader:0.14.22"
|
||||
minecraft "com.mojang:minecraft:1.20.4"
|
||||
mappings "net.fabricmc:yarn:1.20.4+build.3:v2"
|
||||
modImplementation "net.fabricmc:fabric-loader:0.15.2"
|
||||
modImplementation('me.lucko:fabric-permissions-api:0.3-SNAPSHOT')
|
||||
|
||||
// Fabric API
|
||||
@ -24,7 +24,7 @@ dependencies {
|
||||
]
|
||||
|
||||
apiModules.forEach {
|
||||
modImplementation(fabricApi.module(it, "0.89.1+1.20.2"))
|
||||
modImplementation(fabricApi.module(it, "0.91.2+1.20.4"))
|
||||
}
|
||||
|
||||
testImplementation project(path: ":common", configuration: 'testArtifacts')
|
||||
|
@ -48,7 +48,7 @@ public class FabricSensor implements ServerSensor<ServerWorld> {
|
||||
//Returns the ticks per second of the last 100 ticks
|
||||
double totalTickLength = 0;
|
||||
int count = 0;
|
||||
for (long tickLength : server.lastTickLengths) {
|
||||
for (long tickLength : server.getTickTimes()) {
|
||||
if (tickLength == 0) continue; // Ignore uninitialized values in array
|
||||
totalTickLength += Math.max(tickLength, TimeUnit.MILLISECONDS.toNanos(50));
|
||||
count++;
|
||||
|
@ -45,7 +45,7 @@ public class FabricPlayerData implements PlatformPlayerData {
|
||||
|
||||
@Override
|
||||
public String getName() {
|
||||
return player.getEntityName();
|
||||
return player.getNameForScoreboard();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -58,7 +58,7 @@ public abstract class ServerCommandSourceMixin implements CMDSender {
|
||||
|
||||
@Override
|
||||
public Optional<String> getPlayerName() {
|
||||
return getPlayer().map(ServerPlayerEntity::getEntityName);
|
||||
return getPlayer().map(ServerPlayerEntity::getNameForScoreboard);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user