diff --git a/common/src/main/java/net/chococraft/common/entity/AbstractChocobo.java b/common/src/main/java/net/chococraft/common/entity/AbstractChocobo.java index 349fd58..a08820c 100644 --- a/common/src/main/java/net/chococraft/common/entity/AbstractChocobo.java +++ b/common/src/main/java/net/chococraft/common/entity/AbstractChocobo.java @@ -415,11 +415,11 @@ public void aiStep() { if (this.getCommandSenderWorld().isClientSide) { // Wing rotations, control packet, client side // Client side - this.destPos += (double) (this.onGround() ? -1 : 4) * 0.3D; + this.destPos += (float) ((double) (this.onGround() ? -1 : 4) * 0.3D); this.destPos = Mth.clamp(destPos, 0f, 1f); if (!this.onGround()) this.wingRotDelta = Math.min(wingRotation, 1f); - this.wingRotDelta *= 0.9D; + this.wingRotDelta *= 0.9F; this.wingRotation += this.wingRotDelta * 2.0F; if (this.onGround()) { diff --git a/common/src/main/java/net/chococraft/common/entity/breeding/BreedingHelper.java b/common/src/main/java/net/chococraft/common/entity/breeding/BreedingHelper.java index bf6a1a6..ae76b5d 100644 --- a/common/src/main/java/net/chococraft/common/entity/breeding/BreedingHelper.java +++ b/common/src/main/java/net/chococraft/common/entity/breeding/BreedingHelper.java @@ -68,7 +68,7 @@ public static ChocoboColor getColor(AbstractChocobo firstParent, AbstractChocobo } } } else { - Chococraft.LOGGER.error("Breeding Config does not contain " + firstColor.name()); + Chococraft.LOGGER.error("Breeding Config does not contain {}", firstColor.name()); } return ChocoboColor.YELLOW; } diff --git a/fabric/src/main/java/net/chococraft/fabric/client/layer/ChocodisguiseArmorLayer.java b/fabric/src/main/java/net/chococraft/fabric/client/layer/ChocodisguiseArmorLayer.java index 2a32d19..73c20ab 100644 --- a/fabric/src/main/java/net/chococraft/fabric/client/layer/ChocodisguiseArmorLayer.java +++ b/fabric/src/main/java/net/chococraft/fabric/client/layer/ChocodisguiseArmorLayer.java @@ -46,8 +46,7 @@ public void render(PoseStack poseStack, MultiBufferSource multiBufferSource, int private void renderArmorPiece(PoseStack poseStack, MultiBufferSource multiBufferSource, T livingEntity, EquipmentSlot slot, int i, ChocoDisguiseModel humanoidModel) { if (humanoidModel == null) return; ItemStack itemStack = livingEntity.getItemBySlot(slot); - if (itemStack.getItem() instanceof FabricChocoDisguiseItem) { - FabricChocoDisguiseItem armorItem = (FabricChocoDisguiseItem) itemStack.getItem(); + if (itemStack.getItem() instanceof FabricChocoDisguiseItem armorItem) { ((HumanoidModel) this.getParentModel()).copyPropertiesTo(humanoidModel); this.setPartVisibility(humanoidModel, convertSlot(slot)); boolean bl2 = itemStack.hasFoil(); diff --git a/forge/src/main/java/net/chococraft/forge/ChococraftForge.java b/forge/src/main/java/net/chococraft/forge/ChococraftForge.java index f07af5a..5ce5fc0 100644 --- a/forge/src/main/java/net/chococraft/forge/ChococraftForge.java +++ b/forge/src/main/java/net/chococraft/forge/ChococraftForge.java @@ -12,6 +12,7 @@ import net.chococraft.forge.common.modifier.ModModifiers; import net.chococraft.forge.registry.ModDataSerializers; import net.chococraft.registry.ModEntities; +import net.chococraft.registry.ModRegistry; import net.minecraft.world.entity.SpawnPlacements; import net.minecraft.world.level.levelgen.Heightmap; import net.minecraftforge.api.distmarker.Dist; diff --git a/forge/src/main/java/net/chococraft/forge/common/config/BreedingConfig.java b/forge/src/main/java/net/chococraft/forge/common/config/BreedingConfig.java index f9c4f5c..b6174a7 100644 --- a/forge/src/main/java/net/chococraft/forge/common/config/BreedingConfig.java +++ b/forge/src/main/java/net/chococraft/forge/common/config/BreedingConfig.java @@ -46,7 +46,7 @@ public static void loadConfig() { breedingMap.putAll(GSON.fromJson(json, Map.class)); if (!breedingMap.isEmpty()) { breedingInfoHashmap.putAll(breedingMap); - Chococraft.LOGGER.debug("Loaded JSON config file " + INITIAL_FILE.getAbsolutePath()); + Chococraft.LOGGER.debug("Loaded JSON config file {}", INITIAL_FILE.getAbsolutePath()); } else { Chococraft.LOGGER.error("Could not load Breeding Config from {}.", fileName); }