Njol / Skript

Skript is a Bukkit 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.
http://njol.ch/projects/skript
104 stars 60 forks source link

[Bug] Loop-block bugs, in a WorldGuard's region. #311

Open Zerkhan opened 10 years ago

Zerkhan commented 10 years ago

Hi, I have a weird bug with the expression "Blocks in Region" :

command /test:
    trigger:
        region at player is set:
            loop all blocks in region at player:
                loop-block is glass:
                    set loop-block to diamond ore
        region at player isn't set:
            message "Nope."

When I execute "/test", this is what happens : ( Skript version : 2.1.1, from BukkitDev ) ( WorldGuard version : 5.9 from BukkitDev ) ( This server is running CraftBukkit version git-Spigot-1328 (MC: 1.7.2) (Implementing API version 1.7.2-R0.4-SNAPSHOT) )

dafuq

Zerkhan commented 10 years ago

EDIT : I have check the block count with Skript, and the result is always 1024... But the region has only 27 blocks.