Skip to content

Commit 1bef115

Browse files
committed
I had it twice
1 parent 8ace27a commit 1bef115

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,5 @@ server-icon.png
2626
/qnbt2
2727
/qnbt2test.go
2828
/main
29-
/qnbt
29+
/qnbt
30+
my_fucking_git_token

main.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package main
22

33
import (
44
_ "embed"
5-
properties2 "github.com/zeppelinmc/zeppelin/properties"
5+
"github.com/zeppelinmc/zeppelin/properties"
66
"math/rand"
77
"os"
88
"runtime"
@@ -94,21 +94,21 @@ func main() {
9494
srv.Start(timeStart)
9595
}
9696

97-
func loadConfig() properties2.ServerProperties {
97+
func loadConfig() properties.ServerProperties {
9898
file, err := os.ReadFile("server.properties")
9999
if err != nil {
100100
file, err := os.Create("server.properties")
101101
if err == nil {
102-
properties2.Marshal(file, properties2.Default)
102+
properties.Marshal(file, properties.Default)
103103
file.Close()
104104
}
105-
return properties2.Default
105+
return properties.Default
106106
}
107-
var cfg properties2.ServerProperties
107+
var cfg properties.ServerProperties
108108

109-
err = properties2.Unmarshal(string(file), &cfg)
109+
err = properties.Unmarshal(string(file), &cfg)
110110
if err != nil {
111-
cfg = properties2.Default
111+
cfg = properties.Default
112112
}
113113

114114
return cfg

0 commit comments

Comments
 (0)