Palette data structures now use generics for type checking

This commit is contained in:
Tnze
2022-05-20 12:00:35 +08:00
parent 67afd62d58
commit 1ff25ae8ab
5 changed files with 125 additions and 137 deletions

View File

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