mirror of
https://github.com/GTNewHorizons/ThaumicEnergistics.git
synced 2026-10-25 20:32:27 +00:00
Fixed item amount being under the item icon in the Arcane Terminal (#66)
* Fixed item amount being under the item icon in the Arcane Terminal
* update
(cherry picked from commit 9d4bbd453a)
* sa
---------
Co-authored-by: Dream Master <dream-master@gmx.net>
This commit is contained in:
1 parent
4c490f2e8a
commit
b890dad631
3 files changed
+18
-14
No files matched your search
+7
-7
@@ -1,17 +1,17 @@
|
||||
// Add your dependencies here
|
||||
|
||||
dependencies {
|
||||
implementation("com.github.GTNewHorizons:NotEnoughItems:2.6.0-GTNH:dev")
|
||||
implementation("com.github.GTNewHorizons:CodeChickenLib:1.2.1:dev")
|
||||
implementation("com.github.GTNewHorizons:CodeChickenCore:1.2.1:dev")
|
||||
implementation("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-400-GTNH:dev")
|
||||
implementation("com.github.GTNewHorizons:NotEnoughItems:2.6.14-GTNH:dev")
|
||||
implementation("com.github.GTNewHorizons:CodeChickenLib:1.3.0:dev")
|
||||
implementation("com.github.GTNewHorizons:CodeChickenCore:1.3.4:dev")
|
||||
implementation("com.github.GTNewHorizons:Applied-Energistics-2-Unofficial:rv3-beta-405-GTNH:dev")
|
||||
implementation("thaumcraft:Thaumcraft:1.7.10-4.2.3.5:dev")
|
||||
implementation("curse.maven:thaumcraft-nei-plugin-225095:2241913") { transitive = false }
|
||||
|
||||
compileOnly('com.github.GTNewHorizons:ExtraCells2:2.5.34:dev') { transitive = false }
|
||||
compileOnly('com.github.GTNewHorizons:AE2FluidCraft-Rework:1.3.0-gtnh:dev') { transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:waila:1.7.3:dev") { transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.46.16:dev") { transitive = false }
|
||||
compileOnly('com.github.GTNewHorizons:AE2FluidCraft-Rework:1.3.12-gtnh:dev') { transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:waila:1.8.1:dev") { transitive = false }
|
||||
compileOnly("com.github.GTNewHorizons:GT5-Unofficial:5.09.48.75:dev") { transitive = false }
|
||||
compileOnly("curse.maven:computercraft-67504:2269339") { transitive = false }
|
||||
compileOnly("curse.maven:cofh-lib-220333:2388748") { transitive = false }
|
||||
compileOnly("net.industrial-craft:industrialcraft-2:2.2.828-experimental:dev") { transitive = false }
|
||||
|
||||
@@ -55,7 +55,7 @@
|
||||
# Darwin, MinGW, and NonStop.
|
||||
#
|
||||
# (3) This script is generated from the Groovy template
|
||||
# https://github.com/gradle/gradle/blob/HEAD/subprojects/plugins/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# https://github.com/gradle/gradle/blob/HEAD/platforms/jvm/plugins-application/src/main/resources/org/gradle/api/internal/plugins/unixStartScript.txt
|
||||
# within the Gradle project.
|
||||
#
|
||||
# You can find Gradle at https://github.com/gradle/gradle/.
|
||||
|
||||
@@ -7,6 +7,8 @@ import net.minecraft.client.renderer.texture.TextureManager;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.util.EnumChatFormatting;
|
||||
|
||||
import org.lwjgl.opengl.GL11;
|
||||
|
||||
import appeng.api.storage.data.IAEItemStack;
|
||||
import appeng.client.render.AppEngRenderItem;
|
||||
import appeng.util.item.AEItemStack;
|
||||
@@ -67,8 +69,8 @@ public class WidgetAEItem extends ThEWidget {
|
||||
try {
|
||||
if (this.aeItemStack != null) {
|
||||
// Set the z level
|
||||
this.zLevel = 2.0F;
|
||||
this.aeItemRenderer.zLevel = 2.0F;
|
||||
this.zLevel = 100.0F;
|
||||
this.aeItemRenderer.zLevel = 100.0F;
|
||||
|
||||
// Set the item
|
||||
this.aeItemRenderer.setAeStack(this.aeItemStack);
|
||||
@@ -81,17 +83,19 @@ public class WidgetAEItem extends ThEWidget {
|
||||
this.xPosition + 1,
|
||||
this.yPosition + 1);
|
||||
|
||||
// Reset the z level
|
||||
this.zLevel = 0.0F;
|
||||
this.aeItemRenderer.zLevel = 0.0F;
|
||||
|
||||
// Draw the amount
|
||||
GL11.glTranslatef(0.0f, 0.0f, 200.0f);
|
||||
this.aeItemRenderer.renderItemOverlayIntoGUI(
|
||||
WidgetAEItem.MC.fontRenderer,
|
||||
WidgetAEItem.TEXTURE_MANAGER,
|
||||
this.aeItemStack.getItemStack(),
|
||||
this.xPosition + 1,
|
||||
this.yPosition + 1);
|
||||
|
||||
// Reset the z level
|
||||
this.zLevel = 0.0F;
|
||||
this.aeItemRenderer.zLevel = 0.0F;
|
||||
GL11.glTranslatef(0.0f, 0.0f, -200.0f);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
// Silently ignore.
|
||||
|
||||
Reference in new issue
Block a user