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

@ -114,8 +114,7 @@ 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;
return CommandParser.GetReal(dst, bits[1], argName, ref value, 0, max) ? entity.Model : null;
}
public override void Help(Player p) {