mirror of
https://github.com/NoCheatPlus/NoCheatPlus.git
synced 2025-01-15 12:01:51 +01: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 org.bukkit.entity.Player;
|
||||||
|
|
||||||
import fr.neatmonster.nocheatplus.NoCheatPlus;
|
import fr.neatmonster.nocheatplus.NCPAPIProvider;
|
||||||
import fr.neatmonster.nocheatplus.compat.MCAccess;
|
import fr.neatmonster.nocheatplus.compat.MCAccess;
|
||||||
import fr.neatmonster.nocheatplus.utilities.OnDemandTickListener;
|
import fr.neatmonster.nocheatplus.utilities.OnDemandTickListener;
|
||||||
|
|
||||||
@ -37,7 +37,7 @@ public class PlayerTask extends OnDemandTickListener {
|
|||||||
if (player != null) {
|
if (player != null) {
|
||||||
if (player.isOnline()) {
|
if (player.isOnline()) {
|
||||||
if (correctDirection) {
|
if (correctDirection) {
|
||||||
final MCAccess access = NoCheatPlus.getAPI().getMCAccess();
|
final MCAccess access = NCPAPIProvider.getNoCheatPlusAPI().getMCAccess();
|
||||||
access.correctDirection(player);
|
access.correctDirection(player);
|
||||||
}
|
}
|
||||||
if (updateInventory) {
|
if (updateInventory) {
|
||||||
|
Loading…
Reference in New Issue
Block a user