mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 12:19:31 +02:00
fixed bug with the formula for findX
This commit is contained in:
@@ -229,7 +229,7 @@ export default {
|
|||||||
if (X_Cordinates >= 5) {
|
if (X_Cordinates >= 5) {
|
||||||
const findIndex = Math.ceil(X_Cordinates / 5) * 5
|
const findIndex = Math.ceil(X_Cordinates / 5) * 5
|
||||||
const findY = Math.ceil(findIndex / 5)
|
const findY = Math.ceil(findIndex / 5)
|
||||||
const findX = findIndex % 5
|
const findX = X_Cordinates % 5
|
||||||
console.log(findX, findY)
|
console.log(findX, findY)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user