Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
Mrbysco committed Aug 9, 2024
1 parent 67e866e commit 8fdf178
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8fdf178

Please sign in to comment.