Regenerate files, moves packet id from data package
This commit is contained in:
@ -1,7 +1,6 @@
|
||||
// gen_blocks.go generates block information.
|
||||
|
||||
//+build ignore
|
||||
|
||||
// gen_blocks.go generates block information.
|
||||
package main
|
||||
|
||||
import (
|
||||
@ -131,6 +130,7 @@ func makeBlockDeclaration(blocks []Block) *ast.DeclStmt {
|
||||
return out
|
||||
}
|
||||
|
||||
//go:generate go run $GOFILE > ./packetid.go
|
||||
func main() {
|
||||
blocks, err := downloadInfo()
|
||||
if err != nil {
|
||||
@ -138,7 +138,9 @@ func main() {
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
fmt.Println(`// Package block stores information about blocks in Minecraft.
|
||||
fmt.Println(`// Code generated by gen_blocks.go; DO NOT EDIT.
|
||||
|
||||
// Package block stores information about blocks in Minecraft.
|
||||
package block
|
||||
|
||||
import (
|
||||
|
Reference in New Issue
Block a user