Skip to content

Commit 905cb29

Browse files
Add 1.21.9 & 10 support
1 parent ce61f73 commit 905cb29

4 files changed

Lines changed: 19 additions & 1 deletion

File tree

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ stonecutter {
103103

104104
// Configuration goes here
105105
create(getRootProject()) {
106-
versions "1.21", "1.21.1", "1.21.2", "1.21.3", "1.21.4", "1.21.5", "1.21.6", "1.21.7", "1.21.8"
106+
versions "1.21", "1.21.1", "1.21.2", "1.21.3", "1.21.4", "1.21.5", "1.21.6", "1.21.7", "1.21.8", "1.21.9", "1.21.10"
107107
vcsVersion = "1.21"
108108
}
109109
}

src/main/java/singh/akaalroop/meowmeals/mixin/CatEntityMixin.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,11 @@ private void onInteractMob(PlayerEntity player, net.minecraft.util.Hand hand, Ca
6565
ItemStack stack = player.getStackInHand(hand);
6666
CatEntity cat = (CatEntity) (Object) this;
6767

68+
//? if >= 1.21.9 {
69+
/*if (!cat.getEntityWorld().isClient()) {
70+
*///? } else {
6871
if (!cat.getWorld().isClient()) {
72+
//? }
6973
boolean actioned = false;
7074

7175
// Cat Food Tin
@@ -76,7 +80,11 @@ private void onInteractMob(PlayerEntity player, net.minecraft.util.Hand hand, Ca
7680
} else if (!cat.isTamed()) {
7781
cat.setOwner(player);
7882
cat.setSitting(true);
83+
//? if >= 1.21.9 {
84+
/*cat.getEntityWorld().sendEntityStatus(cat, EntityStatuses.ADD_POSITIVE_PLAYER_REACTION_PARTICLES);
85+
*///? } else {
7986
cat.getWorld().sendEntityStatus(cat, EntityStatuses.ADD_POSITIVE_PLAYER_REACTION_PARTICLES);
87+
//? }
8088
sendMeowMealsMessage(player, "Your cat liked that so much that it's now tamed! 🐱", Formatting.YELLOW);
8189
actioned = true;
8290
} else if (cat.isTamed() && !cat.isInLove() && cat.getBreedingAge() == 0) {

versions/1.21.10/gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
deps.fabric_loader=0.19.1
2+
deps.fabric_api=0.138.4+1.21.10
3+
deps.fabric_kotlin=1.13.10+kotlin.2.3.20
4+
deps.yarn_mappings=1.21.10+build.3
5+
deps.rei=21.9.813

versions/1.21.9/gradle.properties

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
deps.fabric_loader=0.19.1
2+
deps.fabric_api=0.134.1+1.21.9
3+
deps.fabric_kotlin=1.13.10+kotlin.2.3.20
4+
deps.yarn_mappings=1.21.9+build.1
5+
deps.rei=21.9.813

0 commit comments

Comments
 (0)