From 1676f36b5b1f3aa0c6c5f1fdc5dae616d48ac833 Mon Sep 17 00:00:00 2001 From: MrZ626 <1046101471@qq.com> Date: Thu, 22 Apr 2021 00:02:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=9D=E8=AF=95=E8=AE=BF=E9=97=AE=E4=B8=8D?= =?UTF-8?q?=E5=AD=98=E5=9C=A8=E7=9A=84=E9=A2=9C=E8=89=B2=E6=97=B6=E4=BC=9A?= =?UTF-8?q?=E7=9B=B4=E6=8E=A5=E6=8A=9B=E5=87=BA=E9=94=99=E8=AF=AF=EF=BC=8C?= =?UTF-8?q?=E4=B8=8D=E5=86=8D=E7=AD=89=E5=88=B0=E7=BB=98=E5=88=B6=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zframework/color.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Zframework/color.lua b/Zframework/color.lua index 4a9631a6..5550c0bb 100644 --- a/Zframework/color.lua +++ b/Zframework/color.lua @@ -65,6 +65,9 @@ for k,v in next,{ }do COLOR[k]=COLOR[v] end +setmetatable(COLOR,{__index=function(_,k) + error("No color: "..tostring(k)) +end}) do--Random generators