Skript

Skript

788k Downloads

Checking if a location is within 2 other locations sometimes produces incorrect results

YouCanDream opened this issue ยท 0 comments

commented

Skript/Server Version

[19:11:04 INFO]: Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[19:11:04 INFO]: Skript's documentation can be found here: https://docs.skriptlang.org/
[19:11:04 INFO]: Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[19:11:04 INFO]: Server Version: 1.21.8-2491-8a5d2c8 (MC: 1.21.8)
[19:11:04 INFO]: Skript Version: 2.12.1 (skriptlang-github)
[19:11:04 INFO]: Installed Skript Addons:
[19:11:04 INFO]:  - skript-reflect v2.6.1 (https://github.com/SkriptLang/skript-reflect)
[19:11:04 INFO]:  - skript-particle v1.3.2 (https://github.com/sovdeeth/skript-particle)
[19:11:04 INFO]:  - SkCheese v1.6
[19:11:04 INFO]:  - SkBee v3.12.3 (https://github.com/ShaneBeee/SkBee)
[19:11:04 INFO]:  - skript-placeholders v1.7.0 (https://github.com/APickledWalrus/skript-placeholders)
[19:11:04 INFO]:  - skript-gui v1.3.2 (https://github.com/APickledWalrus/skript-gui)
[19:11:04 INFO]:  - FancySK v1.0
[19:11:04 INFO]:  - skNoise v1.0
[19:11:04 INFO]:  - oopsk v1.0-beta1 (https://github.com/sovdeeth/oopsk)
[19:11:04 INFO]: Installed dependencies:
[19:11:04 INFO]:  - WorldGuard v7.0.14+2339-43997ec
>

Bug Description

When checking whether a location is within 2 other locations, it produces incorrect results when the location you are checking has smaller coordinates than the 2 other locations. This only happens when the checked location and the cuboid you are checking inside of are within 1 block of each other.

Expected Behavior

!send whether location(0, 0, 0) is within location(0, 0, 0) and location(1, 1, 1) = true, this is correct
!send whether location(0, 0, 0) is within location(0.1, 0.1, 0.1) and location(1, 1, 1) = true, should be false
!send whether location(0, 0, 0) is within location(0.99, 0.99, 0.99) and location(1, 1, 1) = true, should be false
!send whether location(-1, -1, -1) is within location(-0.5, -0.5, -0.5) and location(0, 0, 0) = true, should be false

Steps to Reproduce

Type the effect command in chat and look at the answer.

Errors or Screenshots

No response

Other

No response

Agreement

  • I have read the guidelines above and affirm I am following them with this report.