mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 19:59:55 +00:00
use the ScaledResolution of the event instead of creating a new one
This commit is contained in:
1 parent
95d58be867
commit
e16bed0ee1
1 file changed
+2
-5
@@ -6,7 +6,6 @@ import cpw.mods.fml.common.eventhandler.SubscribeEvent;
|
||||
import java.util.Random;
|
||||
import mantle.lib.client.MantleClientRegistry;
|
||||
import net.minecraft.client.Minecraft;
|
||||
import net.minecraft.client.gui.ScaledResolution;
|
||||
import net.minecraft.client.gui.inventory.GuiInventory;
|
||||
import net.minecraft.client.model.ModelBiped;
|
||||
import net.minecraft.client.renderer.Tessellator;
|
||||
@@ -264,10 +263,8 @@ public class ArmorProxyClient extends ArmorProxyCommon {
|
||||
if (event.type == ElementType.HEALTH) {
|
||||
updateCounter++;
|
||||
|
||||
ScaledResolution scaledresolution =
|
||||
new ScaledResolution(this.mc, this.mc.displayWidth, this.mc.displayHeight);
|
||||
int scaledWidth = scaledresolution.getScaledWidth();
|
||||
int scaledHeight = scaledresolution.getScaledHeight();
|
||||
int scaledWidth = event.resolution.getScaledWidth();
|
||||
int scaledHeight = event.resolution.getScaledHeight();
|
||||
int xBasePos = scaledWidth / 2 - 91;
|
||||
int yBasePos = scaledHeight - 39;
|
||||
|
||||
|
||||
Reference in new issue
Block a user