Invalid axis scale shouldn't still cause your model to get updated

This commit is contained in:
UnknownShadow200 2019-10-19 12:52:28 +11:00
parent faa46585ad
commit 7631785726

View File

@ -113,9 +113,8 @@ namespace MCGalaxy.Commands.CPE {
static string ParseModelScale(Player dst, Entity entity, string model, string argName, ref float value) {
string[] bits = model.SplitSpaces();
float max = ModelInfo.MaxScale(entity);
CommandParser.GetReal(dst, bits[1], argName, ref value, 0, max);
return entity.Model;
float max = ModelInfo.MaxScale(entity);
return CommandParser.GetReal(dst, bits[1], argName, ref value, 0, max) ? entity.Model : null;
}
public override void Help(Player p) {