Set pitch and yaw for npc
This commit is contained in:
parent
8ec6ebd060
commit
e7c171749c
@ -28,7 +28,8 @@ public class WinEffectRankUltra extends WinEffectRankBased
|
|||||||
Location loc = getBaseLocation();
|
Location loc = getBaseLocation();
|
||||||
|
|
||||||
loc.setDirection(_player.getLocation().subtract(loc).toVector().multiply(-1));
|
loc.setDirection(_player.getLocation().subtract(loc).toVector().multiply(-1));
|
||||||
|
loc.setPitch(0);
|
||||||
|
loc.setYaw(0);
|
||||||
_npc = getNPC(getPlayer(), loc);
|
_npc = getNPC(getPlayer(), loc);
|
||||||
|
|
||||||
_creeper = loc.getWorld().spawn(loc.add(loc.getDirection().multiply(-3)), Creeper.class);
|
_creeper = loc.getWorld().spawn(loc.add(loc.getDirection().multiply(-3)), Creeper.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user