Fixed arrow location
This commit is contained in:
parent
99363d9af5
commit
55f85966c1
@ -247,6 +247,9 @@ public class CastleManager extends MiniPlugin
|
||||
boolean isThrone = false;
|
||||
for (Location location : _throneLocations)
|
||||
{
|
||||
if (isThrone)
|
||||
break;
|
||||
|
||||
isThrone = block.getLocation().getBlockX() == location.getBlockX()
|
||||
&& block.getLocation().getBlockY() == location.getBlockY()
|
||||
&& block.getLocation().getBlockZ() == location.getBlockZ();
|
||||
@ -255,7 +258,7 @@ public class CastleManager extends MiniPlugin
|
||||
if (!isThrone)
|
||||
return;
|
||||
|
||||
Location arrowLoc = _throneLocations[0].clone().add(0, 0.25, 0);
|
||||
Location arrowLoc = _throneLocations[0].clone().add(0.5, 0.5, 0.5);
|
||||
Arrow arrow = arrowLoc.getWorld().spawn(arrowLoc, Arrow.class);
|
||||
UtilEnt.vegetate(arrow, true);
|
||||
arrow.setPassenger(player);
|
||||
|
Loading…
Reference in New Issue
Block a user