fix blockCount bug

This commit is contained in:
Tnze
2023-02-04 00:44:12 +08:00
parent cb00499efe
commit 9a64bcfac7
2 changed files with 23 additions and 11 deletions

View File

@ -1,7 +1,11 @@
package block
func IsAir(s StateID) bool {
switch StateList[s].(type) {
return IsAirBlock(StateList[s])
}
func IsAirBlock(b Block) bool {
switch b.(type) {
case Air, CaveAir, VoidAir:
return true
default: