diff --git a/src/main/java/dev/resent/module/base/ModManager.java b/src/main/java/dev/resent/module/base/ModManager.java index 77ce9057..0a429760 100644 --- a/src/main/java/dev/resent/module/base/ModManager.java +++ b/src/main/java/dev/resent/module/base/ModManager.java @@ -34,6 +34,7 @@ import dev.resent.module.impl.misc.HUD; import dev.resent.module.impl.misc.Scoreboard; import dev.resent.module.impl.misc.Sprint; import dev.resent.module.impl.setting.Animations; +import dev.resent.module.impl.setting.Hand; import dev.resent.module.impl.setting.MinimalViewBobbing; import dev.resent.module.impl.setting.NoParticles; import dev.resent.module.impl.setting.NoRain; @@ -78,9 +79,11 @@ public class ModManager { public static FPSOptions fpsOptions = new FPSOptions(); public static AdminRay adminRay = new AdminRay(); public static AdminSpawner adminSpawner =new AdminSpawner(); + public static Hand hand; public ModManager() { //Hud + register(hand = new Hand()); register(adminSpawner); register(adminRay); register(fpsOptions); diff --git a/src/main/java/dev/resent/module/impl/setting/Hand.java b/src/main/java/dev/resent/module/impl/setting/Hand.java new file mode 100644 index 00000000..02691b9b --- /dev/null +++ b/src/main/java/dev/resent/module/impl/setting/Hand.java @@ -0,0 +1,7 @@ +package dev.resent.module.impl.setting; + +import dev.resent.annotation.Module; +import dev.resent.module.base.Mod; + +@Module(name = "Left hand") +public class Hand extends Mod{ } diff --git a/src/main/java/net/minecraft/client/renderer/ItemRenderer.java b/src/main/java/net/minecraft/client/renderer/ItemRenderer.java index 4b68b993..966b6676 100644 --- a/src/main/java/net/minecraft/client/renderer/ItemRenderer.java +++ b/src/main/java/net/minecraft/client/renderer/ItemRenderer.java @@ -311,6 +311,10 @@ public class ItemRenderer { this.func_178110_a((EntityPlayerSP) entityplayersp, partialTicks); GlStateManager.enableRescaleNormal(); GlStateManager.pushMatrix(); + if(ModManager.hand.isEnabled()){ + GlStateManager.scale(-1.0D, 1.0D, 1.0D); + GlStateManager.disableCull(); + } if (this.itemToRender != null) { if (this.itemToRender.getItem() == Items.filled_map) { this.renderItemMap(entityplayersp, f2, f, f1);