Skip to content

Commit

Permalink
Meow part two
Browse files Browse the repository at this point in the history
  • Loading branch information
enjarai committed Jan 6, 2025
1 parent 827efdc commit 20975f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- Fixed a crash with Continuity, and possibly other mods.
- Fixed a crash with Continuity, and possibly other mods. Part two.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ deps.yarn=1.21.4+build.2
deps.fabricloader=0.16.9

# Mod Properties
mod_version=1.7.2
mod_version=1.7.3
maven_group=dev.enjarai.blahajtotem
archives_base_name=blahaj-totem

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import dev.enjarai.blahajtotem.pond.BakedHuggableModel;
import dev.enjarai.blahajtotem.pond.HuggableItemRenderState;
import net.fabricmc.fabric.api.client.model.loading.v1.UnwrappableBakedModel;
import net.minecraft.client.render.item.ItemRenderState;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Shadow;
Expand All @@ -14,7 +15,7 @@ public class ItemRenderStateMixin implements HuggableItemRenderState {
public boolean blahaj_totem$isHuggable() {
for (var layer : layers) {
var model = ((LayerRenderStateAccessor) layer).getModel();
if (model instanceof BakedHuggableModel huggable && huggable.blahaj_totem$isHuggable()) {
if (UnwrappableBakedModel.unwrap(model) instanceof BakedHuggableModel huggable && huggable.blahaj_totem$isHuggable()) {
return true;
}
}
Expand Down

0 comments on commit 20975f8

Please sign in to comment.