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

Trees are replanted even if player lack of perm treeassist.replant #103

Open
SaitDev opened this issue Dec 28, 2024 · 0 comments
Open

Trees are replanted even if player lack of perm treeassist.replant #103

SaitDev opened this issue Dec 28, 2024 · 0 comments

Comments

@SaitDev
Copy link

SaitDev commented Dec 28, 2024

The issue is mentioned as so in the title.

I tried to look at the code, i guess you are missing the negative compare at https://github.com/slipcor/TreeAssist/blob/master/src/main/java/net/slipcor/treeassist/discovery/TreeStructure.java#L2034 .
Should be !TreeAssist.instance.getBlockListener().isReplant(player.getName())
Since the BlockListener.replant list is about forcing replant, not normal replanting.

Please correct me if im wrong, Im not very familiar with the codebase

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

No branches or pull requests

1 participant