mirror of
https://github.com/BentoBoxWorld/Boxed.git
synced 2025-01-05 18:37:48 +01:00
Sets island spawn point to new enderpearl location.
https://github.com/BentoBoxWorld/Boxed/issues/4
This commit is contained in:
parent
9a586ed762
commit
9354382f76
@ -55,6 +55,7 @@ public class EnderPearlListener implements Listener {
|
||||
});
|
||||
try {
|
||||
i.setProtectionCenter(l);
|
||||
i.setSpawnPoint(l.getWorld().getEnvironment(), l);
|
||||
u.getPlayer().playSound(l, Sound.ENTITY_GENERIC_EXPLODE, 2F, 2F);
|
||||
} catch (IOException e1) {
|
||||
addon.logError("Could not move box " + e1.getMessage());
|
||||
|
Loading…
Reference in New Issue
Block a user