26ed99fda6
Build and deploy / Build (push) Has been cancelled
Build and deploy / Update Contributors (push) Has been cancelled
Build and deploy / Deploy (push) Has been cancelled
24 lines
658 B
Go
24 lines
658 B
Go
package leveldat
|
|
|
|
import (
|
|
"github.com/sandertv/gophertunnel/minecraft/protocol"
|
|
"strconv"
|
|
"strings"
|
|
)
|
|
|
|
// Version is the current version stored in level.dat files.
|
|
const Version = 10
|
|
|
|
// minimumCompatibleClientVersion is the minimum compatible client version,
|
|
// required by the latest Minecraft data provider.
|
|
var minimumCompatibleClientVersion []int32
|
|
|
|
// init initialises the minimum compatible client version.
|
|
func init() {
|
|
fullVersion := append(strings.Split(protocol.CurrentVersion, "."), "0", "0")
|
|
for _, v := range fullVersion {
|
|
i, _ := strconv.Atoi(v)
|
|
minimumCompatibleClientVersion = append(minimumCompatibleClientVersion, int32(i))
|
|
}
|
|
}
|