diff --git a/src/main/java/com/hashicorp/hashicraft/block/entity/VaultDispenserEntity.java b/src/main/java/com/hashicorp/hashicraft/block/entity/VaultDispenserEntity.java index eb5a565..4cb46ab 100644 --- a/src/main/java/com/hashicorp/hashicraft/block/entity/VaultDispenserEntity.java +++ b/src/main/java/com/hashicorp/hashicraft/block/entity/VaultDispenserEntity.java @@ -92,8 +92,8 @@ public Login login(PlayerEntity player) { Mod.LOGGER.debug(response.body()); - GsonBuilder builder = new GsonBuilder(); - Gson gson = builder.create(); + GsonBuilder jsonbuilder = new GsonBuilder(); + Gson gson = jsonbuilder.create(); Login login = gson.fromJson(response.body(), Login.class); return login; } catch (Exception e) { diff --git a/src/main/java/com/hashicorp/hashicraft/block/entity/VaultLockEntity.java b/src/main/java/com/hashicorp/hashicraft/block/entity/VaultLockEntity.java index 2fff5ab..ea9180b 100644 --- a/src/main/java/com/hashicorp/hashicraft/block/entity/VaultLockEntity.java +++ b/src/main/java/com/hashicorp/hashicraft/block/entity/VaultLockEntity.java @@ -116,8 +116,8 @@ public boolean checkAccess(String token, String policy) { Mod.LOGGER.info(response.body()); // check the value of the key in the secret - GsonBuilder builder = new GsonBuilder(); - Gson gson = builder.create(); + GsonBuilder jsonbuilder = new GsonBuilder(); + Gson gson = jsonbuilder.create(); Secret secret = gson.fromJson(response.body(), Secret.class); // check to see if the value in the secret matches the value defined in the lock