Fix no message being shown when specifiying an invalid block for various commands. (Big oops)

This commit is contained in:
UnknownShadow200 2017-06-26 09:38:33 +10:00
parent 23c37f00dd
commit ce07eb786f

View File

@ -146,6 +146,8 @@ namespace MCGalaxy.Commands {
// find custom block
byte raw = BlockDefinition.GetBlock(input, p);
if (raw != Block.Invalid) return ExtBlock.FromRaw(raw);
Player.Message(p, "&cThere is no block \"{0}\".", input);
return ExtBlock.Invalid;
}