From 8b25469d6ef3e8aeb1a19326d879293a9958bfe8 Mon Sep 17 00:00:00 2001 From: walker Date: Fri, 20 Oct 2023 15:04:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=8F=82=E6=95=B0=E9=94=99?= =?UTF-8?q?=E8=AF=AF=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- world.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/world.go b/world.go index 5ab92dd..d3f3a0a 100644 --- a/world.go +++ b/world.go @@ -98,7 +98,7 @@ func Entries(w World, entities []donburi.Entity) []*Entry { // tick 单位为ms,且必须大于0,(小于15ms的值在Windows系统中会达不到,Windows系统中系统中断好像默认是15.6ms,也就是一秒最多64次) func NewWorld(tick int) World { if tick <= 0 { - panic("tick必须大于0") + panic(fmt.Errorf("创建World错误: tick必须大于0")) } return &world{ World: donburi.NewWorld(),