forked from SkriptLang/Skript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix BlockLineIterator completion failure exception (SkriptLang#7062)
Caused by height clamping
- Loading branch information
1 parent
73323d5
commit 6ada656
Showing
3 changed files
with
33 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
test "blocks void": | ||
set {_loc} to location(0.5, 320.5, 0.5) | ||
set {_blocks::*} to blocks between {_loc} and ({_loc} ~ vector(10,0,0)) | ||
assert size of {_blocks::*} is 11 with "Blocks between loc and (loc~vector(10,0,0)) is not 11" | ||
assert blocks at {_blocks::*} is void air with "Blocks can be set in the void?" | ||
set blocks at {_blocks::*} to stone | ||
assert blocks at {_blocks::*} is void air with "Blocks can be set in the void?" | ||
|
||
test "blocks vector direction": | ||
set {_loc} to location(0.5, 20.5, 0.5) | ||
set {_blocks::*} to blocks vector(1,0,0) {_loc} | ||
assert size of {_blocks::*} is 100 with "Blocks vector(1,0,0) loc is not 100" | ||
set blocks at {_blocks::*} to stone | ||
assert blocks at {_blocks::*} is stone with "1 or more blocks were not set to stone" | ||
set blocks at {_blocks::*} to air | ||
assert blocks at {_blocks::*} is air with "1 or more blocks were not set to air" | ||
loop {_blocks::*}: | ||
set block at loop-value to loop-value |