mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 13:12:49 -04:00
Invalid axis scale shouldn't still cause your model to get updated
This commit is contained in:
parent
faa46585ad
commit
7631785726
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user