mirror of
https://github.com/BentoBoxWorld/Boxed.git
synced 2025-02-07 23:51:29 +01:00
Use correct API for setting home locations.
This commit is contained in:
parent
6fe37b4111
commit
3607c4bd60
@ -49,10 +49,7 @@ public class EnderPearlListener implements Listener {
|
||||
// Check flag
|
||||
if (i.isAllowed(u, Boxed.MOVE_BOX) && addon.getIslands().isSafeLocation(l)) {
|
||||
// Reset home locations
|
||||
i.getMemberSet().forEach(uuid -> {
|
||||
addon.getPlayers().getPlayer(uuid).clearHomeLocations(l.getWorld());
|
||||
addon.getPlayers().getPlayer(uuid).setHomeLocation(l);
|
||||
});
|
||||
i.getMemberSet().forEach(uuid -> addon.getIslands().setHomeLocation(uuid, l));
|
||||
try {
|
||||
i.setProtectionCenter(l);
|
||||
i.setSpawnPoint(l.getWorld().getEnvironment(), l);
|
||||
|
Loading…
Reference in New Issue
Block a user