This commit is contained in:
BruceChen 2022-09-02 22:38:59 +08:00
parent 11fe93a128
commit 6cb0c35ab8
3 changed files with 40 additions and 40 deletions

View file

@ -116,12 +116,10 @@ namespace MinecraftClient.Mapping
/// <param name="nbt">The dimension type (NBT Tag Compound)</param>
public static void SetDimension(string name)
{
if (dimensionList!.TryGetValue(name, out Dimension? dimension))
curDimension = dimension;
else
Console.WriteLine("Can't find dimension \"" + name + "\"");
curDimension = dimensionList![name]; // Should not fail
}
/// <summary>
/// Get current dimension
/// </summary>