Skip to content

Commit e08759a

Browse files
committed
Fixed fastvec operator shadowing
1 parent 9916e24 commit e08759a

File tree

1 file changed

+2
-2
lines changed
  • common/src/main/kotlin/com/lambda/util/world

1 file changed

+2
-2
lines changed

common/src/main/kotlin/com/lambda/util/world/Position.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,12 @@ infix fun FastVector.div(scalar: Double): FastVector =
179179
/**
180180
* Modulo the position by the given scalar.
181181
*/
182-
infix fun FastVector.mod(scalar: Int): FastVector = fastVectorOf(x % scalar, y % scalar, z % scalar)
182+
infix fun FastVector.remainder(scalar: Int): FastVector = fastVectorOf(x % scalar, y % scalar, z % scalar)
183183

184184
/**
185185
* Modulo the position by the given scalar.
186186
*/
187-
infix fun FastVector.mod(scalar: Double): FastVector =
187+
infix fun FastVector.remainder(scalar: Double): FastVector =
188188
fastVectorOf((x % scalar).toLong(), (y % scalar).toLong(), (z % scalar).toLong())
189189

190190
/**

0 commit comments

Comments
 (0)