This commit is contained in:
gnembon committed 2025-08-27 09:57:17 +02:00
1 parent dd5f58f719
commit 9408e40d4a
3 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties # Fabric Properties
# check https://fabricmc.net/develop/ # check https://fabricmc.net/develop/
minecraft_version=25w34b minecraft_version=25w35a
loader_version=0.16.14 loader_version=0.16.14
jsr305_version=3.0.2 jsr305_version=3.0.2
fabric_version=0.119.5+1.21.5 fabric_version=0.119.5+1.21.5
+2 -2
View File
@@ -708,7 +708,7 @@ public class CarpetSettings
if (server.isDedicatedServer()) if (server.isDedicatedServer())
{ {
int vd = (newValue >= 2)?newValue:((ServerInterface) server).getProperties().viewDistance; int vd = (newValue >= 2)?newValue:((ServerInterface) server).getProperties().viewDistance.get();
if (vd != server.getPlayerList().getViewDistance()) if (vd != server.getPlayerList().getViewDistance())
server.getPlayerList().setViewDistance(vd); server.getPlayerList().setViewDistance(vd);
return newValue; return newValue;
@@ -749,7 +749,7 @@ public class CarpetSettings
if (server.isDedicatedServer()) if (server.isDedicatedServer())
{ {
int vd = (newValue >= 2)?newValue:((DedicatedServer) server).getProperties().simulationDistance; int vd = (newValue >= 2)?newValue:((DedicatedServer) server).getProperties().simulationDistance.get();
if (vd != server.getPlayerList().getSimulationDistance()) if (vd != server.getPlayerList().getSimulationDistance())
server.getPlayerList().setSimulationDistance(vd); server.getPlayerList().setSimulationDistance(vd);
return newValue; return newValue;
@@ -80,10 +80,10 @@ public class EntityPlayerMPFake extends ServerPlayer
// We need to mark this player as spawning so that we do not // We need to mark this player as spawning so that we do not
// try to spawn another player with the name while the profile // try to spawn another player with the name while the profile
// is being fetched - preventing multiple players spawning // is being fetched - preventing multiple players spawning
String name = gameprofile.getName(); String name = gameprofile.name();
spawning.add(name); spawning.add(name);
fetchGameProfile(server, gameprofile.getId()).whenCompleteAsync((p, t) -> { fetchGameProfile(server, gameprofile.id()).whenCompleteAsync((p, t) -> {
// Always remove the name, even if exception occurs // Always remove the name, even if exception occurs
spawning.remove(name); spawning.remove(name);
if (t != null) if (t != null)
@@ -92,7 +92,7 @@ public class EntityPlayerMPFake extends ServerPlayer
} }
GameProfile current; GameProfile current;
if (p.getName().isEmpty()) { if (p.name().isEmpty()) {
current = gameprofile; current = gameprofile;
} }
else { else {