SkriptLang / Skript

Skript is a Spigot plugin which allows server admins to customize their server easily, but without the hassle of programming a plugin or asking/paying someone to program a plugin for them.
https://docs.skriptlang.org
GNU General Public License v3.0
1.06k stars 368 forks source link

Relative forward #4708

Closed Lotzyprod closed 2 years ago

Lotzyprod commented 2 years ago

Skript/Server Version

pufferfish 1.18.2, git-59
Skript 2.6.1

Bug Description

Block forward of some directional block not correct

Expected Behavior

Correct position.

Steps to Reproduce

on dispense:
    set block forward event-block to glowstone

it's only with upward direction

Errors or Screenshots

2022-03-29_22 43 14

Other

No response

Agreement

Pikachu920 commented 2 years ago

This is likely because the y coord of a block is actually .5 (e.g. a block at y 65 has a y coord of 65.5) so it's probably being rounded up?

Lotzyprod commented 2 years ago

This is likely because the y coord of a block is actually .5 (e.g. a block at y 65 has a y coord of 65.5) so it's probably being rounded up?

I dont know, but when I use spigot expressions with reflect, it's work normally, I think its bug