This commit is contained in:
Tnze
2022-04-03 15:09:55 +08:00
parent e00bb53f9e
commit f4bb734c1c
2 changed files with 12 additions and 11 deletions

10
level/block/utilfuncs.go Normal file
View File

@ -0,0 +1,10 @@
package block
func IsAir(s int) bool {
switch StateList[s].(type) {
case Air, CaveAir, VoidAir:
return true
default:
return false
}
}