From 7631785726f81a1ff438f0725629052eaa806215 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 19 Oct 2019 12:52:28 +1100 Subject: [PATCH] Invalid axis scale shouldn't still cause your model to get updated --- MCGalaxy/Commands/CPE/CmdModel.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/MCGalaxy/Commands/CPE/CmdModel.cs b/MCGalaxy/Commands/CPE/CmdModel.cs index 8a1ec767f..536042350 100644 --- a/MCGalaxy/Commands/CPE/CmdModel.cs +++ b/MCGalaxy/Commands/CPE/CmdModel.cs @@ -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) {