up3
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
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
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
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))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user