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