Buggy code:
public class JungleRaidInstance extends LegacyZoneBase implements Zone , Runnable { private List < Player > participants = new ArrayList < > ( ) ; private Map < Player , Set < Player > > teamMapping = new HashMap < > ( ) ; private Set < Player > freeForAllPlayers = new HashSet < > ( ) ; private Set < Player > blueTeamPlayers = new HashSet < > ( ) ; private Set < Player > redTeamPlayers = new HashSet < > ( ) ; private Map < Player , JungleRaidClass > classMap = new HashMap < > ( ) ; private Map < Player , Player > lastAttackerMap = new HashMap < > ( ) ; private JungleRaidState state = JungleRaidState . LOBBY ; private long startTime ; private Location < World > lobbySpawnLocation ; private Location < World > leftFlagActivationSign ; private Location < World > rightFlagActivationSign ; private List < Location < World > > scrollingFlagSigns = new ArrayList < > ( ) ; private Location < World > leftClassActivationSign ; private Location < World > rightClassActivationSign ; private List < Location < World > > scrollingClassSigns = new ArrayList < > ( ) ; private int signScrollFlagStart ; private int signScrollClassStart ; private FlagEffectData flagData = new FlagEffectData ( ) ; private boolean [ ] flagState = new boolean [ JungleRaidFlag . values ( ) . length ] ; public JungleRaidInstance ( ZoneRegion region ) { } @ Override public boolean init ( ) { } private void setUp ( ) { } private void updateFlagSign ( int index ) { } private void flagSignPopulate ( ) { } public Location < World > getLeftFlagActivationSign ( ) { } public Location < World > getRightFlagActivationSign ( ) { } public void leftFlagListSign ( ) { } public void rightFlagListSign ( ) { } public void tryToggleFlagSignAt ( Location < World > loc ) { } private void updateClassSign ( int index ) { } private void classSignPopulate ( ) { } public Location < World > getLeftClassActivationSign ( ) { } public Location < World > getRightClassActivationSign ( ) { } public void leftClassListSign ( ) { } public void rightClassListSign ( ) { } public void tryUseClassSignAt ( Location < World > loc , Player player ) { } public void setFlag ( JungleRaidFlag flag , boolean enabled ) { } public boolean isFlagEnabled ( JungleRaidFlag flag ) { } @ Override public void forceEnd ( ) { } @ Override public void run ( ) { } private void outOfBoundsCheck ( ) { } public JungleRaidState getState ( ) { } public long getStartTime ( ) { } public FlagEffectData getFlagData ( ) { } private void tryBeginCombat ( ) { } public Optional < Clause < String , WinType > > getWinner ( ) { } private Optional < Clause < String , WinType > > getWinner ( Collection < Player > ffa , Collection < Player > blue , Collection < Player > red ) { } private void processWin ( Clause < String , WinType > winClause ) { } @ Override public Collection < Player > getPlayers ( PlayerClassifier classifier ) { } @ Override public Clause < Player , ZoneStatus > add ( Player player ) { } private void giveBaseEquipment ( Player player , JungleRaidClass jrClass ) { } private void giveTeamEquipment ( Player player , Color teamColor ) { } private void resetPlayerProperties ( Player player ) { } private void addPlayer ( Player player , Supplier < Location < World > > startingPos , Color teamColor , JungleRaidClass jrClass ) { } public void addFFAPlayer ( Player player , JungleRaidClass jrClass ) { } public void addBluePlayer ( Player player , JungleRaidClass jrClass ) { } public void addRedPlayer ( Player player , JungleRaidClass jrClass ) { } public void smartStart ( ) { } public Location < World > getRandomLocation ( ) { Vector3i offset = getRegion ( ) . getMinimumPoint ( ) ; Vector3i boundingBox = getRegion ( ) . getBoundingBox ( ) ; while ( true ) { Vector3i randomDest = new Vector3i ( Probability . getRandom ( boundingBox . getX ( ) ) , Probability . getRangedRandom ( 16 , 80 ) , Probability . getRandom ( boundingBox . getZ ( ) ) ) . add ( offset ) ; Optional < Location < World > > optSafeDest = SafeTeleportHelper . getSafeDest ( new Location ( getRegion ( ) . getExtent ( ) , randomDest ) ) ; if ( optSafeDest . isPresent ( ) ) { Location < World > safeDest = optSafeDest . get ( ) ; if ( ( 16 < ( safeDest . getY ( ) ) ) && ( ( safeDest . getY ( ) ) < 79 ) ) { <START_BUG> return safeDest ; <END_BUG> } } } } @ Override public Clause < Player , ZoneStatus > remove ( Player player ) { } public void playerLost ( Player player ) { } public Optional < Color > getTeamColor ( Player player ) { } public Optional < JungleRaidClass > getClass ( Player player ) { } private void payPlayer ( Player player ) { } public void recordAttack ( Player attacker , Player defender ) { } public Optional < Player > getLastAttacker ( Player defender ) { } public boolean isFriendlyFire ( Player attacker , Player defender ) { } }

Fix:
return safeDest . add ( 0.5 , 0 , 0.5 ) ;