1.18 exp1
This commit is contained in:
1 parent
b85311e3bf
commit
9cdc297314
4 files changed
+6
-6
No files matched your search
@@ -189,7 +189,7 @@ public class PlayerCommand
|
||||
Messenger.m(context.getSource(), "r Player ", "rb " + playerName, "r is already logged on");
|
||||
return true;
|
||||
}
|
||||
GameProfile profile = server.getUserCache().findByName(playerName).orElse(null);
|
||||
GameProfile profile = server.getUserCache().method_14515(playerName); // findByName .orElse(null)
|
||||
if (profile == null)
|
||||
{
|
||||
if (!CarpetSettings.allowSpawningOfflinePlayers)
|
||||
|
||||
@@ -40,7 +40,7 @@ public class EntityPlayerMPFake extends ServerPlayerEntity
|
||||
UserCache.setUseRemote(false);
|
||||
GameProfile gameprofile;
|
||||
try {
|
||||
gameprofile = server.getUserCache().findByName(username).orElse(null);
|
||||
gameprofile = server.getUserCache().method_14515(username); //findByName .orElse(null)
|
||||
}
|
||||
finally {
|
||||
UserCache.setUseRemote(server.isDedicated() && server.isOnlineMode());
|
||||
|
||||
@@ -33,8 +33,8 @@ public class BiomeInfo
|
||||
put("water_fog_color", (w, b) -> ValueConversions.ofRGB(((BiomeEffectsInterface)b.getEffects()).getCMWaterFogColor()));
|
||||
put("humidity", (w, b) -> NumericValue.of(b.getDownfall()));
|
||||
put("precipitation", (w, b) -> StringValue.of(b.getPrecipitation().getName()));
|
||||
put("depth", (w, b) -> NumericValue.of(b.getDepth()));
|
||||
put("scale", (w, b) -> NumericValue.of(b.getScale()));
|
||||
//put("depth", (w, b) -> NumericValue.of(b.getDepth()));
|
||||
//put("scale", (w, b) -> NumericValue.of(b.getScale()));
|
||||
put("features", (w, b) -> {
|
||||
|
||||
Registry<ConfiguredFeature<?,?>> registry = w.getRegistryManager().get(Registry.CONFIGURED_FEATURE_KEY);
|
||||
|
||||
@@ -32,8 +32,8 @@
|
||||
"accessWidener" : "carpet.accesswidener",
|
||||
|
||||
"depends": {
|
||||
"minecraft": "1.17.x",
|
||||
"fabricloader": ">=0.11.3",
|
||||
"minecraft": "1.18.x",
|
||||
"fabricloader": ">=0.11.6",
|
||||
"java": ">=16"
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user