Skip to content

Commit

Permalink
Update to 1.19.4
Browse files Browse the repository at this point in the history
  • Loading branch information
tr7zw committed Mar 18, 2023
1 parent 98ae851 commit fef8b82
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion FPFabric/src/main/resources/fabric.mod.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"firstperson.mixins.json"
],
"depends": {
"minecraft": ">=1.19.3",
"minecraft": ">=1.19.4",
"fabric-api": "*"
}
}
9 changes: 5 additions & 4 deletions FPFabric/src/test/java/dev/tr7zw/tests/TestUtil.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package dev.tr7zw.tests;

import java.io.IOException;
import java.io.InputStream;
import java.lang.reflect.Field;
import java.lang.reflect.Method;
Expand All @@ -14,7 +13,6 @@
import com.google.common.collect.ImmutableMap;

import dev.tr7zw.config.CustomConfigScreen;
import net.minecraft.client.Minecraft;
import net.minecraft.client.OptionInstance;
import net.minecraft.client.gui.components.OptionsList;
import net.minecraft.client.model.PlayerModel;
Expand All @@ -30,9 +28,7 @@
import net.minecraft.client.renderer.entity.player.PlayerRenderer;
import net.minecraft.locale.Language;
import net.minecraft.network.chat.FormattedText;
import net.minecraft.network.chat.Style;
import net.minecraft.util.FormattedCharSequence;
import net.minecraft.util.StringDecomposer;

public class TestUtil {

Expand Down Expand Up @@ -94,6 +90,11 @@ public boolean isDefaultRightToLeft() {
public FormattedCharSequence getVisualOrder(FormattedText formattedText) {
return null;
}

@Override
public String getOrDefault(String paramString1, String paramString2) {
return storage.getOrDefault(paramString1, paramString2);
}
};
}

Expand Down
2 changes: 1 addition & 1 deletion FPForge/src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ Enables the third person Model in firstperson
[[dependencies.firstpersonmod]]
modId="minecraft"
mandatory=true
versionRange="[1.19.3,)"
versionRange="[1.19.4,)"
ordering="NONE"
side="CLIENT"
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
import dev.tr7zw.firstperson.FirstPersonModelCore;
import net.minecraft.client.player.LocalPlayer;
import net.minecraft.client.renderer.MultiBufferSource;
import net.minecraft.client.renderer.block.model.ItemTransforms;
import net.minecraft.client.renderer.entity.layers.ItemInHandLayer;
import net.minecraft.world.entity.HumanoidArm;
import net.minecraft.world.entity.LivingEntity;
import net.minecraft.world.item.ItemDisplayContext;
import net.minecraft.world.item.ItemStack;

/**
Expand All @@ -24,7 +24,7 @@
public class HeldItemFeatureRendererMixin {

@Inject(at = @At("HEAD"), method = "renderArmWithItem", cancellable = true)
private void renderItem(LivingEntity livingEntity, ItemStack itemStack, ItemTransforms.TransformType transformType, HumanoidArm humanoidArm, PoseStack poseStack, MultiBufferSource multiBufferSource, int i, CallbackInfo ci) {
private void renderItem(LivingEntity livingEntity, ItemStack itemStack, ItemDisplayContext itemDisplayContext, HumanoidArm humanoidArm, PoseStack poseStack, MultiBufferSource multiBufferSource, int i, CallbackInfo ci) {
if (livingEntity instanceof LocalPlayer && FirstPersonModelCore.isRenderingPlayer
&& FirstPersonModelCore.instance.showVanillaHands()) {
ci.cancel();
Expand Down
2 changes: 1 addition & 1 deletion gradle-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: '0.0.2'
source: "https://github.com/tr7zw/ModComposeTemplate/tree/1.19.3"
source: "https://github.com/tr7zw/ModComposeTemplate/tree/1.19.4"
replacements:
name: "FirstPerson"
id: "firstperson"
Expand Down

0 comments on commit fef8b82

Please sign in to comment.