From 726ad414d7ca5b7a62f6cb6746caf48a88c9ea55 Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Fri, 28 Nov 2025 06:33:05 +0100 Subject: [PATCH] PckStudio(ModelEditor) - Fix constant code style --- PCK-Studio/Forms/Editor/ModelEditor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PCK-Studio/Forms/Editor/ModelEditor.cs b/PCK-Studio/Forms/Editor/ModelEditor.cs index 9c9ea22a..da7c4508 100644 --- a/PCK-Studio/Forms/Editor/ModelEditor.cs +++ b/PCK-Studio/Forms/Editor/ModelEditor.cs @@ -40,7 +40,7 @@ namespace PckStudio.Forms.Editor modelTreeView.ImageList.Images.AddRange(ApplicationScope.EntityImages); } - private const int InvalidImageIndex = 127; + private const int INVALID_IMAGE_INDEX = 127; // TODO: move to json file. -miku private static Dictionary ModelImageIndex = new Dictionary() { @@ -123,7 +123,7 @@ namespace PckStudio.Forms.Editor ["zombie.villager_v2"] = 102, }; - private static int GetModelImageIndex(string name) => ModelImageIndex.TryGetValue(name, out int index) ? index : InvalidImageIndex; + private static int GetModelImageIndex(string name) => ModelImageIndex.TryGetValue(name, out int index) ? index : INVALID_IMAGE_INDEX; private class ModelNode : TreeNode {