mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2024-09-04 11:11:10 +02:00
Wrong API used.
This commit is contained in:
parent
db7b34e50c
commit
62b3088082
|
@ -2,7 +2,7 @@ package fr.neatmonster.nocheatplus.players;
|
|||
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import fr.neatmonster.nocheatplus.NoCheatPlus;
|
||||
import fr.neatmonster.nocheatplus.NCPAPIProvider;
|
||||
import fr.neatmonster.nocheatplus.compat.MCAccess;
|
||||
import fr.neatmonster.nocheatplus.utilities.OnDemandTickListener;
|
||||
|
||||
|
@ -37,7 +37,7 @@ public class PlayerTask extends OnDemandTickListener {
|
|||
if (player != null) {
|
||||
if (player.isOnline()) {
|
||||
if (correctDirection) {
|
||||
final MCAccess access = NoCheatPlus.getAPI().getMCAccess();
|
||||
final MCAccess access = NCPAPIProvider.getNoCheatPlusAPI().getMCAccess();
|
||||
access.correctDirection(player);
|
||||
}
|
||||
if (updateInventory) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user