WorldGuard

WorldGuard

8M Downloads

Pistons can't destroy water/buttons etc. against a region border

LadyCailinBot opened this issue ยท 6 comments

commented

WORLDGUARD-4064 - Reported by aurora

When a piston pushes water, torches, buttons, etc, usually it destroys these blocks. When trying the same thing against a region border, the piston won't move. This is probably because the piston cant push blocks outside of its region, but in this case nothing would get pushed, so the piston should be allowed to move. I've uploaded a video demonstrating this issue: https://youtu.be/-UKf97_QEKI
Turn on CC for comments.
This was tested and recorder 2015, but the bug still exists in the newest versions.

commented

Comment by aurora

Mh, apparently it didn't like my project selection. This is of course a WorldGuard Issue

commented

Comment by wizjany

behavior looks correct? not sure what's wrong

commented

Comment by aurora

@wizjany maybe I didn't explain it correctly then. The Piston and the button (etc) are both inside the same region but the wall next to the button is outside the region. So (Piston, button) (wall).
The Piston is not moving a block out of it's region, it's trying to destroy a block inside its region, which should just work normally, but doesn't, probably because it just checks if there is a block in front of the Piston, and not if the block in front of the piston is actually able to be pushed.

If I put a stone block there for example, the behavior is correct, the Piston should not be able to push a block outside its region.

But buttons, torches, water and other stuff won't get pushed by Pistons, so nothing can be pushed outside of the region and the Piston should destroy it, like it does it you aren't pushing anything against a (region) border

commented

Comment by wizjany

ooh, the stone wall is outside the region. thought the water/torches were outside the region.
think we use the server's blocklist though. will have to see.

commented

Comment by wizjany

i tested some basic cases, but in general pistons are pretty wonky, so i'm not sure how this will work with complex piston machines.

commented

Comment by aurora

seems to work, perfectly, thanks!