Skip to content

Commit 3cad004

Browse files
committed
Checkstyle fixes
1 parent 98fc685 commit 3cad004

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/main/java/com/github/skriptdev/skript/api/hytale/utils/EntityUtils.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,9 @@ public static Ref<EntityStore> spawnModel(@Nullable Item item, @NotNull Model mo
385385
holder.addComponent(NetworkId.getComponentType(), new NetworkId(store.getExternalData().takeNextNetworkId()));
386386
holder.addComponent(TransformComponent.getComponentType(), new TransformComponent(location.getPosition(), location.getRotation()));
387387
holder.addComponent(ModelComponent.getComponentType(), new ModelComponent(model));
388-
holder.addComponent(PersistentModel.getComponentType(), new PersistentModel(new Model.ModelReference(model.getModelAssetId(), 1.0f, null, true)));
388+
holder.addComponent(PersistentModel.getComponentType(),
389+
new PersistentModel(
390+
new Model.ModelReference(model.getModelAssetId(), 1.0f, null, true)));
389391
if (item != null) {
390392
ItemStack itemStack = new ItemStack(item.getId(), 1);
391393
itemStack.setOverrideDroppedItemAnimation(true);

src/main/java/com/github/skriptdev/skript/api/skript/docs/JsonDocPrinter.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public class JsonDocPrinter {
5050
private final SkriptAddon addon;
5151
private final String addonKey;
5252
private final boolean includeSkriptParser;
53-
private final List<String> IDS = new ArrayList<>();
53+
private final List<String> ids = new ArrayList<>();
5454

5555
public JsonDocPrinter(CommandSender sender, SkriptAddon addon) {
5656
this.sender = sender;
@@ -595,10 +595,10 @@ private BsonString getId(String type, String syntaxId) {
595595
}
596596
String s = type + ":" + addonName + ":" + syntaxId;
597597
String id = s.toLowerCase(Locale.ROOT).replace(" ", "_");
598-
if (this.IDS.contains(id)) {
598+
if (this.ids.contains(id)) {
599599
Utils.error("Duplicate ID: " + id);
600600
}
601-
this.IDS.add(id);
601+
this.ids.add(id);
602602
return new BsonString(id);
603603

604604
}

0 commit comments

Comments
 (0)