Skip to content

Commit

Permalink
Version 6.0
Browse files Browse the repository at this point in the history
*Changed ImproperUI Library version

*Now using ImproperUI config system

*Updated Fabric Loom Version

*Added No Hand Swing Animation + No Eating Animation

*Added updates notification

*Clean Up code

*Added 1.21 Support
  • Loading branch information
I-No-oNe committed Jun 18, 2024
1 parent 1c395b4 commit 97f7f70
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies {
// Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"

compileOnly files("libs/ImproperUI-1-20.6-0.0.6-BETA.jar")
compileOnly files("libs/ImproperUI-1.21-0.0.6-BETA.jar")
}

processResources {
Expand Down
8 changes: 4 additions & 4 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ org.gradle.jvmargs=-Xmx1G

# Fabric Properties
# check these on https://modmuss50.me/fabric.html
minecraft_version=1.20.6
yarn_mappings=1.20.6+build.1
minecraft_version=1.21
yarn_mappings=1.21+build.2
loader_version=0.15.11

# Mod Properties
mod_version = 6.0-1.20.6-fabric
mod_version = 6.0-1.21-fabric
maven_group=net.i_no_am.view_model
archives_base_name=view-model

# Dependencies
# check this on https://modmuss50.me/fabric.html
fabric_version=0.98.0+1.20.6
fabric_version=0.100.3+1.21
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import net.minecraft.client.render.VertexConsumerProvider;
import net.minecraft.client.render.item.HeldItemRenderer;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.item.ItemStack;
import net.minecraft.util.Arm;
import net.minecraft.util.Hand;
Expand All @@ -21,7 +22,7 @@
public abstract class MixinHeldItemRenderer implements Global {

@Inject(method = "applyEatOrDrinkTransformation", at = @At("HEAD"), cancellable = true)
public void OnApplyEatOrDrinkTransformation(MatrixStack MatrixStack, float tickDelta, Arm arm, ItemStack stack, CallbackInfo ci) {
public void OnApplyEatOrDrinkTransformation(MatrixStack matrices, float tickDelta, Arm arm, ItemStack stack, PlayerEntity player, CallbackInfo ci) {
if (ViewModelSettings.no_food_swing) {
ci.cancel();
}
Expand Down

0 comments on commit 97f7f70

Please sign in to comment.