mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-27 13:15:33 +01:00
Compile fix
This commit is contained in:
parent
a3231176bf
commit
14b0387c04
@ -7,7 +7,7 @@ import net.citizensnpcs.api.util.Colorizer;
|
||||
import net.citizensnpcs.npc.AbstractEntityController;
|
||||
import net.citizensnpcs.util.NMS;
|
||||
import net.minecraft.server.v1_5_R2.PlayerInteractManager;
|
||||
import net.minecraft.server.v1_5_R2.WorldServer;
|
||||
import net.minecraft.server.v1_5_R2.World;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
@ -18,7 +18,7 @@ import org.bukkit.entity.Player;
|
||||
public class HumanController extends AbstractEntityController {
|
||||
@Override
|
||||
protected LivingEntity createEntity(final Location at, final NPC npc) {
|
||||
WorldServer ws = ((CraftWorld) at.getWorld()).getHandle();
|
||||
World ws = ((CraftWorld) at.getWorld()).getHandle();
|
||||
final EntityHumanNPC handle = new EntityHumanNPC(ws.getServer().getServer(), ws, Colorizer.parseColors(npc
|
||||
.getFullName()), new PlayerInteractManager(ws), npc);
|
||||
handle.getBukkitEntity().teleport(at);
|
||||
|
Loading…
Reference in New Issue
Block a user