Skip to content

Commit c774b07

Browse files
committed
fix build
1 parent 240c152 commit c774b07

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

server/world/tick.go

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
package world
22

33
import (
4-
"github.com/df-mc/dragonfly/server/block/cube"
5-
"github.com/df-mc/dragonfly/server/internal/sliceutil"
64
"maps"
75
"math/rand/v2"
86
"slices"
97
"time"
8+
9+
"github.com/df-mc/dragonfly/server/block/cube"
10+
"github.com/df-mc/dragonfly/server/internal/sliceutil"
1011
)
1112

1213
// ticker implements World ticking methods.
@@ -59,13 +60,13 @@ func (t ticker) tick(tx *Tx) {
5960
}
6061
}
6162

62-
rain, thunder, tick, tim := w.set.Raining, w.set.Thundering && w.set.Raining, w.set.CurrentTick, int(w.set.Time)
63+
rain, thunder, tick, tim, cycle := w.set.Raining, w.set.Thundering && w.set.Raining, w.set.CurrentTick, int(w.set.Time), w.set.TimeCycle
6364
w.set.Unlock()
6465

6566
if tick%20 == 0 {
6667
for _, viewer := range viewers {
6768
if w.Dimension().TimeCycle() {
68-
viewer.ViewTime(tim)
69+
viewer.ViewTime(tim, cycle)
6970
}
7071
if w.Dimension().WeatherCycle() {
7172
viewer.ViewWeather(rain, thunder)

0 commit comments

Comments
 (0)