Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sledge/Pliers no-physics only half works #7

Open
Peter200lx opened this issue Apr 30, 2012 · 2 comments
Open

Sledge/Pliers no-physics only half works #7

Peter200lx opened this issue Apr 30, 2012 · 2 comments
Labels

Comments

@Peter200lx
Copy link
Owner

When using the sledge/pliers on sand, the new block still behaves as if physics was enabled. With the sledge, the block removed has no physics applied, as is visible by the fact that it will not force sand above it to fall down.

@Peter200lx
Copy link
Owner Author

https://bukkit.atlassian.net/browse/BUKKIT-1312

Apparently this is a known Bukkit bug, hopefully will be resolved.

@Peter200lx
Copy link
Owner Author

There is a way to cancel the fall event, the question is whether there is an efficient way to only do it after a Sledge/Pliers use.

    @EventHandler
    public void catchEntChangeBlock(EntityChangeBlockEvent event) {
        if (event.getEntityType().equals(EntityType.FALLING_BLOCK)) {
            event.setCancelled(true);
        }
    }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant