Skip to content
This repository has been archived by the owner on Sep 7, 2024. It is now read-only.

Commit

Permalink
Fix hand rendering issues
Browse files Browse the repository at this point in the history
  • Loading branch information
wohaopa committed Mar 1, 2023
1 parent 9b0b1fd commit a7266d4
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 51 deletions.
4 changes: 2 additions & 2 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
* For more details, see https://docs.gradle.org/7.6/userguide/java_library_plugin.html#sec:java_library_configurations_graph
*/
dependencies {
implementation files("lib/battlegear2-1.7.10-1.1.2.1.jar")
implementation files("lib/replaymod-1.7.10-2.5.2.jar")
implementation("com.github.GTNewHorizons:Battlegear2:1.1.2.4:dev"){transitive = false}
implementation files("lib/replaymod-1.7.10-2.5.2.jars")
}
Binary file removed lib/battlegear2-1.7.10-1.1.2.1.jar
Binary file not shown.
5 changes: 4 additions & 1 deletion repositories.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// Add any additional repositories for your dependencies here

repositories {

maven {
name 'GTNH Maven'
url 'http://jenkins.usrv.eu:8081/nexus/content/groups/public/'
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,9 @@ public void acceptTargets(Set<String> myTargets, Set<String> otherTargets) {
public List<String> getMixins() {
List<String> mixins = new ArrayList<>();
if (FMLLaunchHandler.side().isClient()) {
// mixins.add("NetHandlerPlayClientMixin");
mixins.add("NetworkManagerMixin");
mixins.add("MappingDataLoaderMixin");
mixins.add("BattlegearRenderHelperMixin");
// mixins.add("BattlegearRenderHelperMixin");
}
return mixins;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
package com.github.wohaopa.replaymodfixmod.mixins;

import mods.battlegear2.client.utils.BattlegearRenderHelper;

import net.minecraft.client.Minecraft;
import net.minecraft.client.renderer.ItemRenderer;

import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.Overwrite;

@Mixin(BattlegearRenderHelper.class)
public abstract class BattlegearRenderHelperMixin {

/**
* @author wohaopa
* @reason :(
*/
@Overwrite(remap = false)
public static void updateEquippedItem(ItemRenderer itemRenderer, Minecraft mc) {
// ReplayModFixMod.LOG.log(Level.WARNING,"W");
}
}
//package com.github.wohaopa.replaymodfixmod.mixins;
//
//import mods.battlegear2.api.core.IOffhandRender;
//import mods.battlegear2.client.utils.BattlegearRenderHelper;
//
//import net.minecraft.client.Minecraft;
//import net.minecraft.client.renderer.ItemRenderer;
//
//import org.spongepowered.asm.mixin.Mixin;
//import org.spongepowered.asm.mixin.Overwrite;
//
//@Mixin(BattlegearRenderHelper.class)
//public abstract class BattlegearRenderHelperMixin {
//
// /**
// * @author wohaopa
// * @reason :(
// */
// @Overwrite(remap = false)
// public static void updateEquippedItem(ItemRenderer itemRenderer, Minecraft mc) {
// // ReplayModFixMod.LOG.log(Level.WARNING,"W");
// }
//}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ public abstract class NetworkManagerMixin {
target = "Lnet/minecraft/network/Packet;func_148833_a(Lnet/minecraft/network/INetHandler;)V",
remap = false))
private void inject(Packet packet, INetHandler netHandler) {
// System.out.printf("haha");

try {
packet.processPacket(netHandler);
} catch (NullPointerException e) {
if (e == null) {
ReplayModFixMod.LOG.log(Level.ERROR, "I don't known!");
return;
}
ReplayModFixMod.LOG.log(Level.ERROR, "NPE!: %s", packet.getClass().getName());
ReplayModFixMod.LOG.log(Level.ERROR, "NPE!: %s" + packet.getClass().getName());
ReplayModFixMod.LOG.catching(e);
}
}
Expand Down

0 comments on commit a7266d4

Please sign in to comment.