mirror of
https://github.com/Minestom/Minestom.git
synced 2025-01-04 23:47:59 +01:00
Nothing
This commit is contained in:
parent
8bc9bc7de5
commit
94923c4b3a
@ -320,7 +320,7 @@ public class InstanceContainer extends Instance {
|
|||||||
OptionalCallback.execute(callback, chunk);
|
OptionalCallback.execute(callback, chunk);
|
||||||
} else {
|
} else {
|
||||||
if (hasEnabledAutoChunkLoad()) {
|
if (hasEnabledAutoChunkLoad()) {
|
||||||
// Load chunk from StorageLocation or with ChunkGenerator
|
// Use `IChunkLoader` or `ChunkGenerator`
|
||||||
retrieveChunk(chunkX, chunkZ, callback);
|
retrieveChunk(chunkX, chunkZ, callback);
|
||||||
} else {
|
} else {
|
||||||
// Chunk not loaded, return null
|
// Chunk not loaded, return null
|
||||||
|
@ -95,7 +95,7 @@ public class PlayerInit {
|
|||||||
event.setSpawningInstance(instance);
|
event.setSpawningInstance(instance);
|
||||||
int x = Math.abs(ThreadLocalRandom.current().nextInt()) % 500 - 250;
|
int x = Math.abs(ThreadLocalRandom.current().nextInt()) % 500 - 250;
|
||||||
int z = Math.abs(ThreadLocalRandom.current().nextInt()) % 500 - 250;
|
int z = Math.abs(ThreadLocalRandom.current().nextInt()) % 500 - 250;
|
||||||
player.setRespawnPoint(new Position(0, 42f, 0));
|
player.setRespawnPoint(new Position(0, 82f, 0));
|
||||||
})
|
})
|
||||||
.addListener(PlayerSpawnEvent.class, event -> {
|
.addListener(PlayerSpawnEvent.class, event -> {
|
||||||
final Player player = event.getPlayer();
|
final Player player = event.getPlayer();
|
||||||
|
Loading…
Reference in New Issue
Block a user