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

Empty hand #198

Open
Gobrunk opened this issue Jan 21, 2019 · 2 comments
Open

Empty hand #198

Gobrunk opened this issue Jan 21, 2019 · 2 comments

Comments

@Gobrunk
Copy link

Gobrunk commented Jan 21, 2019

On branch api7, a player can open a chest when his hand is empty even if he is not allowed to interract on the claim. It might come from here, with the isWhitelisted which puts "air" as a whitelisted item :

if (optItem.isPresent() && (ConfigHandler.isWhitelisted("use", optItem.get().getType().getId()) || optItem.get().getType().equals(ItemTypes.GOLDEN_AXE) && ConfigHandler.getNode("others", "enableGoldenAxe").getBoolean(true)))
			return;
@MineTears
Copy link

Is there any fix? I don't know what to do at all :(

@antoineok
Copy link

fix and pull request, you can now have a patched version by downloading this patched version (or building yourself the plugin)
Nations211-2.11-S7.0-MC1.12.1_patch.zip

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

3 participants