Skip to content

Commit

Permalink
chore: cleanup for devil familiar
Browse files Browse the repository at this point in the history
  • Loading branch information
klikli-dev committed Jan 13, 2024
1 parent dbb8580 commit 4bac8fc
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,17 +41,6 @@

public class DevilFamiliarModel extends DefaultedGeoModel<DevilFamiliarEntity> {

/**
* Create a new instance of this model class.<br>
* The asset path should be the truncated relative path from the base folder.<br>
* E.G.
* <pre>
* {@code
* new ResourceLocation("myMod", "animals/red_fish")
* }</pre>
*
* @param assetSubpath
*/
public DevilFamiliarModel() {
super(new ResourceLocation(Occultism.MODID, "familiar_devil"));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,7 @@

import com.klikli_dev.occultism.client.model.entity.DevilFamiliarModel;
import com.klikli_dev.occultism.common.entity.familiar.DevilFamiliarEntity;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.RenderType;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.resources.ResourceLocation;
import software.bernie.geckolib.renderer.GeoEntityRenderer;

public class DevilFamiliarRenderer extends GeoEntityRenderer<DevilFamiliarEntity> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public void registerControllers(AnimatableManager.ControllerRegistrar controller

@Override
public int getCurrentSwingDuration() {
return 10; //to match our attack animation speed
return 11; //to match our attack animation speed + 1 tick
}

private <T extends GeoAnimatable> PlayState animPredicate(AnimationState<T> tAnimationState) {
Expand Down

0 comments on commit 4bac8fc

Please sign in to comment.