Closed as not planned
Description
Skript/Server Version
[10:42:46 INFO]: [Skript] Server Version: 1.21.4-144-edacfdf (MC: 1.21.4)
[10:42:46 INFO]: [Skript] Skript Version: 2.10.1 (selfbuilt-unknown)
[10:42:46 INFO]: [Skript] - skript-reflect v2.6 (https://github.com/SkriptLang/skript-reflect)
[10:42:46 INFO]: [Skript] Installed dependencies:
[10:42:46 INFO]: [Skript] - WorldGuard v7.0.13-beta-2+5c4848b
Bug Description
function getCuboid(location: location, tier: string) :: locations:
set {_size} to {data::%{_tier}%::size}
set {_x} to x-coord of {_location}
set {_z} to z-coord of {_location}
set {_min} to location({_x} - {_size}, -50, {_z} - {_size}, world of {_location})
set {_max} to location({_x} + {_size}, y-coord of {_location} + {data::%{_tier}%::height}, {_z} + {_size}, world of {_location})
return {_min} and {_max}
This function parsing time adds 15 seconds to the parsing.
Expected Behavior
Something about the location function plus adding all the coordinates makes the parser take longer than it should here.
Steps to Reproduce
paste function, and reload script
Errors or Screenshots
No response
Other
No response
Agreement
- I have read the guidelines above and affirm I am following them with this report.
Metadata
Metadata
Assignees
Labels
No labels