mirror of
https://github.com/BentoBoxWorld/BentoBox.git
synced 2024-09-25 13:22:52 +02:00
Sets initial home location in middle of block
This commit is contained in:
parent
c2a7ca86ff
commit
3ca0c440e4
@ -10,8 +10,8 @@ import org.bukkit.Material;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.World.Environment;
|
||||
import org.bukkit.util.Vector;
|
||||
|
||||
import org.eclipse.jdt.annotation.Nullable;
|
||||
|
||||
import world.bentobox.bentobox.BStats;
|
||||
import world.bentobox.bentobox.BentoBox;
|
||||
import world.bentobox.bentobox.api.events.IslandBaseEvent;
|
||||
@ -149,7 +149,7 @@ public class NewIsland {
|
||||
plugin.getPlayers().clearHomeLocations(world, user.getUniqueId());
|
||||
|
||||
// Set home location
|
||||
plugin.getPlayers().setHomeLocation(user, next, 1);
|
||||
plugin.getPlayers().setHomeLocation(user, next.add(0.5D, 0, 0.5D), 1);
|
||||
|
||||
// Save the player so that if the server crashes weird things won't happen
|
||||
plugin.getPlayers().save(user.getUniqueId());
|
||||
|
Loading…
Reference in New Issue
Block a user