mirror of
https://github.com/TotalFreedomMC/TF-EssentialsX.git
synced 2025-02-14 13:13:24 +00:00
Fix 1.12.1+ NoSuchMethodError in /break (fixes #1438)
This commit is contained in:
parent
4802744ce7
commit
ec61ffcaad
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ public class Commandbreak extends EssentialsCommand {
|
||||||
//TODO: Switch to use util class
|
//TODO: Switch to use util class
|
||||||
@Override
|
@Override
|
||||||
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception {
|
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception {
|
||||||
final Block block = user.getBase().getTargetBlock((HashSet<Byte>) null, 20);
|
final Block block = user.getBase().getTargetBlock((Set<Material>) null, 20);
|
||||||
if (block == null) {
|
if (block == null) {
|
||||||
throw new NoChargeException();
|
throw new NoChargeException();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue