mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Fix /b for air displaying 'airfallback'
This commit is contained in:
parent
c633e82116
commit
9bbfec25c2
@ -440,7 +440,7 @@ namespace MCGalaxy {
|
|||||||
if (block == Block.custom_block) {
|
if (block == Block.custom_block) {
|
||||||
BlockDefinition def = CustomBlockDefs[extBlock];
|
BlockDefinition def = CustomBlockDefs[extBlock];
|
||||||
return def == null ? extBlock.ToString() : def.Name.Replace(" ", "");
|
return def == null ? extBlock.ToString() : def.Name.Replace(" ", "");
|
||||||
} else if (block >= Block.CpeCount) {
|
} else if (block >= Block.CpeCount || block == Block.air) {
|
||||||
return Block.Name(block);
|
return Block.Name(block);
|
||||||
} else {
|
} else {
|
||||||
BlockDefinition def = CustomBlockDefs[block];
|
BlockDefinition def = CustomBlockDefs[block];
|
||||||
|
@ -101,7 +101,7 @@ namespace MCGalaxy {
|
|||||||
|
|
||||||
// Not all languages use . as their decimal point separator
|
// Not all languages use . as their decimal point separator
|
||||||
public static bool TryParseDecimal(string s, out float result) {
|
public static bool TryParseDecimal(string s, out float result) {
|
||||||
if (s.IndexOf(',') >= 0) s = s.Replace(',', '.');
|
if (s != null && s.IndexOf(',') >= 0) s = s.Replace(',', '.');
|
||||||
result = 0;
|
result = 0;
|
||||||
float temp;
|
float temp;
|
||||||
const NumberStyles style = NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite
|
const NumberStyles style = NumberStyles.AllowLeadingWhite | NumberStyles.AllowTrailingWhite
|
||||||
|
Loading…
x
Reference in New Issue
Block a user