mirror of
https://github.com/Minestom/Minestom.git
synced 2024-09-29 06:57:28 +02:00
Updated JNoise + cleanup
This commit is contained in:
parent
0d0674ee5d
commit
d35bb8f434
@ -51,7 +51,7 @@ dependencies {
|
||||
api 'com.github.TheMode:CommandBuilder:f893cfbfe4'
|
||||
|
||||
// https://jitpack.io/#Articdive/Jnoise
|
||||
api 'com.github.Articdive:Jnoise:1.0-SNAPSHOT'
|
||||
api 'com.github.Articdive:Jnoise:145c910a1e'
|
||||
|
||||
// https://mvnrepository.com/artifact/org.rocksdb/rocksdbjni
|
||||
api group: 'org.rocksdb', name: 'rocksdbjni', version: '6.8.1'
|
||||
|
@ -16,7 +16,7 @@ import java.util.Random;
|
||||
public class NoiseTestGenerator extends ChunkGenerator {
|
||||
|
||||
private Random random = new Random();
|
||||
private JNoise jNoise = JNoise.newBuilder().perlin().setInterpolationType(InterpolationType.LINEAR).setSeed(141414).setFrequency(0.5).build();
|
||||
private JNoise jNoise = JNoise.newBuilder().perlin().setInterpolation(InterpolationType.LINEAR).setSeed(141414).setFrequency(0.5).build();
|
||||
|
||||
@Override
|
||||
public void generateChunkData(ChunkBatch batch, int chunkX, int chunkZ) {
|
||||
|
@ -82,7 +82,7 @@ public class PlayerSkin {
|
||||
|
||||
try {
|
||||
final String response = URLUtils.getText(url);
|
||||
JsonObject jsonObject = (new JsonParser()).parse(response).getAsJsonObject();
|
||||
JsonObject jsonObject = JsonParser.parseString(response).getAsJsonObject();
|
||||
final String uuid = jsonObject.get("id").getAsString();
|
||||
return fromUuid(uuid);
|
||||
} catch (IOException e) {
|
||||
|
Loading…
Reference in New Issue
Block a user