mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-26 12:46:04 +01:00
Fix path debugging for mc pathfinder
This commit is contained in:
parent
eb10e76ca7
commit
0473887462
@ -13,6 +13,7 @@ import java.util.concurrent.TimeUnit;
|
|||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
|
|
||||||
import org.bukkit.Bukkit;
|
import org.bukkit.Bukkit;
|
||||||
|
import org.bukkit.ChatColor;
|
||||||
import org.bukkit.Location;
|
import org.bukkit.Location;
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.block.Block;
|
import org.bukkit.block.Block;
|
||||||
@ -46,7 +47,6 @@ import net.citizensnpcs.api.util.BoundingBox;
|
|||||||
import net.citizensnpcs.api.util.Messaging;
|
import net.citizensnpcs.api.util.Messaging;
|
||||||
import net.citizensnpcs.api.util.Placeholders;
|
import net.citizensnpcs.api.util.Placeholders;
|
||||||
import net.citizensnpcs.api.util.SpigotUtil;
|
import net.citizensnpcs.api.util.SpigotUtil;
|
||||||
import org.bukkit.ChatColor;
|
|
||||||
|
|
||||||
public class Util {
|
public class Util {
|
||||||
private Util() {
|
private Util() {
|
||||||
@ -408,7 +408,7 @@ public class Util {
|
|||||||
for (Player player : blocks.get(0).getWorld().getPlayers()) {
|
for (Player player : blocks.get(0).getWorld().getPlayers()) {
|
||||||
for (Block block : blocks) {
|
for (Block block : blocks) {
|
||||||
if (type != null) {
|
if (type != null) {
|
||||||
player.sendBlockChange(loc, type, (byte) 0);
|
player.sendBlockChange(block.getLocation(loc), type, (byte) 0);
|
||||||
} else if (SpigotUtil.isUsing1_13API()) {
|
} else if (SpigotUtil.isUsing1_13API()) {
|
||||||
player.sendBlockChange(block.getLocation(loc), block.getBlockData());
|
player.sendBlockChange(block.getLocation(loc), block.getBlockData());
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user