BlockLineIterator IllegalStateException when attempting to place blocks between two points above world limit.
sovdeeth opened this issue ยท 0 comments
Skript/Server Version
[20:03:34 INFO]: [Skript] Skript's aliases can be found here: https://github.com/SkriptLang/skript-aliases
[20:03:34 INFO]: [Skript] Skript's documentation can be found here: https://docs.skriptlang.org/
[20:03:34 INFO]: [Skript] Skript's tutorials can be found here: https://docs.skriptlang.org/tutorials
[20:03:34 INFO]: [Skript] Server Version: git-Paper-390 (MC: 1.20.4)
[20:03:34 INFO]: [Skript] Skript Version: 2.8.2 (skriptlang-github)
[20:03:34 INFO]: [Skript] Installed Skript Addons: None
[20:03:34 INFO]: [Skript] Installed dependencies: None
Bug Description
Setting blocks above height limit with blocks between
results in a stack trace.
Expected Behavior
Skript should silently fail.
Steps to Reproduce
Fly above 320 and do !set blocks between me and block 1 in front of me to stone
Errors or Screenshots
[20:03:15 ERROR]: #!#!
[20:03:15 ERROR]: #!#! [Skript] Severe Error:
[20:03:15 ERROR]: #!#!
[20:03:15 ERROR]: #!#! Something went horribly wrong with Skript.
[20:03:15 ERROR]: #!#! This issue is NOT your fault! You probably can't fix it yourself, either.
[20:03:15 ERROR]: #!#! You should report it at https://github.com/SkriptLang/Skript/issues. Please copy paste this report there (or use paste service).
[20:03:15 ERROR]: #!#! This ensures that your issue is noticed and will be fixed as soon as possible.
[20:03:15 ERROR]: #!#!
[20:03:15 ERROR]: #!#! Stack trace:
[20:03:15 ERROR]: #!#! java.lang.IllegalStateException: BlockLineIterator missed the end block!
[20:03:15 ERROR]: #!#! at Skript_2.8.2.jar//ch.njol.skript.util.BlockLineIterator$1.check(BlockLineIterator.java:49)
[20:03:15 ERROR]: #!#! at Skript_2.8.2.jar//ch.njol.skript.util.BlockLineIterator$1.check(BlockLineIterator.java:42)
[20:03:15 ERROR]: #!#! at Skript_2.8.2.jar//ch.njol.util.coll.iterator.StoppableIterator.next(StoppableIterator.java:83)
[20:03:15 ERROR]: #!#! at com.google.common.collect.Iterators.addAll(Iterators.java:367)
[20:03:15 ERROR]: #!#! at com.google.common.collect.Lists.newArrayList(Lists.java:146)
[20:03:15 ERROR]: #!#! at Skript_2.8.2.jar//ch.njol.skript.expressions.ExprBlocks.get(ExprBlocks.java:126)
[20:03:15 ERROR]: #!#! at Skript_2.8.2.jar//ch.njol.skript.expressions.ExprBlocks.get(ExprBlocks.java:48)
[20:03:15 ERROR]: #!#! at Skript_2.8.2.jar//ch.njol.skript.lang.util.SimpleExpression.getArray(SimpleExpression.java:94)
[20:03:15 ERROR]: #!#! at Skript_2.8.2.jar//ch.njol.skript.lang.util.SimpleExpression.change(SimpleExpression.java:232)
[20:03:15 ERROR]: #!#! at Skript_2.8.2.jar//ch.njol.skript.effects.EffChange.execute(EffChange.java:292)
[20:03:15 ERROR]: #!#! at Skript_2.8.2.jar//ch.njol.skript.lang.Effect.run(Effect.java:49)
[20:03:15 ERROR]: #!#! at Skript_2.8.2.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:61)
[20:03:15 ERROR]: #!#! at Skript_2.8.2.jar//ch.njol.skript.lang.TriggerItem.walk(TriggerItem.java:88)
[20:03:15 ERROR]: #!#! at Skript_2.8.2.jar//ch.njol.skript.command.Commands.handleEffectCommand(Commands.java:201)
[20:03:15 ERROR]: #!#! at Skript_2.8.2.jar//ch.njol.skript.command.Commands$2.lambda$onPlayerChat$0(Commands.java:300)
[20:03:15 ERROR]: #!#! at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftFuture.run(CraftFuture.java:88)
[20:03:15 ERROR]: #!#! at org.bukkit.craftbukkit.v1_20_R3.scheduler.CraftScheduler.mainThreadHeartbeat(CraftScheduler.java:480)
[20:03:15 ERROR]: #!#! at net.minecraft.server.MinecraftServer.b(MinecraftServer.java:1633)
[20:03:15 ERROR]: #!#! at net.minecraft.server.dedicated.DedicatedServer.b(DedicatedServer.java:446)
[20:03:15 ERROR]: #!#! at net.minecraft.server.MinecraftServer.a(MinecraftServer.java:1512)
[20:03:15 ERROR]: #!#! at net.minecraft.server.MinecraftServer.w(MinecraftServer.java:1214)
[20:03:15 ERROR]: #!#! at net.minecraft.server.MinecraftServer.lambda$spin$0(MinecraftServer.java:321)
[20:03:15 ERROR]: #!#! at java.base/java.lang.Thread.run(Thread.java:833)
[20:03:15 ERROR]: #!#!
[20:03:15 ERROR]: #!#! Version Information:
[20:03:15 ERROR]: #!#! Skript: 2.8.2 (latest)
[20:03:15 ERROR]: #!#! Flavor: skriptlang-github
[20:03:15 ERROR]: #!#! Date: 12:36:18.989662200
[20:03:15 ERROR]: #!#! Bukkit: 1.20.4-R0.1-SNAPSHOT
[20:03:15 ERROR]: #!#! Minecraft: 1.20.4
[20:03:15 ERROR]: #!#! Java: 17.0.2 (OpenJDK 64-Bit Server VM 17.0.2+8)
[20:03:15 ERROR]: #!#! OS: Windows 11 amd64 10.0
[20:03:15 ERROR]: #!#!
[20:03:15 ERROR]: #!#! Server platform: Paper
[20:03:15 ERROR]: #!#!
[20:03:15 ERROR]: #!#! Current node: null
[20:03:15 ERROR]: #!#! Current item: set blocks from (me >> ch.njol.skript.classes.data.DefaultConverters$$Lambda$7273/0x0000000801af9d38@3a2a2fc5: ConverterInfo{from=interface org.bukkit.entity.Entity,to=class org.bukkit.Location,converter=ch.njol.skript.classes.data.DefaultConverters$$Lambda$7273/0x0000000801af9d38@3a2a2fc5,flags=4}) to (the block ([[long:1]] meter(s) in front of (me >> ch.njol.skript.classes.data.DefaultConverters$$Lambda$7273/0x0000000801af9d38@3a2a2fc5: ConverterInfo{from=interface org.bukkit.entity.Entity,to=class org.bukkit.Location,converter=ch.njol.skript.classes.data.DefaultConverters$$Lambda$7273/0x0000000801af9d38@3a2a2fc5,flags=4}) >> ch.njol.skript.expressions.ExprBlock$1@23a4a6c9: ConverterInfo{from=class org.bukkit.Location,to=interface org.bukkit.block.Block,converter=ch.njol.skript.expressions.ExprBlock$1@23a4a6c9,flags=0}))->org.bukkit.Location to [[itemtype:stone block]]
[20:03:15 ERROR]: #!#!
[20:03:15 ERROR]: #!#! Thread: Server thread
[20:03:15 ERROR]: #!#!
[20:03:15 ERROR]: #!#! Language: english
[20:03:15 ERROR]: #!#! Link parse mode: DISABLED
[20:03:15 ERROR]: #!#!
[20:03:15 ERROR]: #!#! End of Error.
[20:03:15 ERROR]: #!#!
Other
No response
Agreement
- I have read the guidelines above and affirm I am following them with this report.