Updated JNoise + cleanup

This commit is contained in:
Felix Cravic 2020-07-02 16:04:46 +02:00
parent 0d0674ee5d
commit d35bb8f434
3 changed files with 3 additions and 3 deletions

View File

@ -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'

View File

@ -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) {

View File

@ -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) {