aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/dulkirmod/mixins/MixinGuiContainer.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/dulkirmod/mixins/MixinGuiContainer.java')
-rw-r--r--src/main/java/dulkirmod/mixins/MixinGuiContainer.java32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/main/java/dulkirmod/mixins/MixinGuiContainer.java b/src/main/java/dulkirmod/mixins/MixinGuiContainer.java
index 2ffa02d..2b9b070 100644
--- a/src/main/java/dulkirmod/mixins/MixinGuiContainer.java
+++ b/src/main/java/dulkirmod/mixins/MixinGuiContainer.java
@@ -16,31 +16,31 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(GuiContainer.class)
public abstract class MixinGuiContainer extends GuiScreen {
- @Inject(at=@At("HEAD"), method="drawSlot", cancellable = true)
+ @Inject(at = @At("HEAD"), method = "drawSlot", cancellable = true)
public void drawSlot(Slot slotIn, CallbackInfo ci) {
if (Croesus.Companion.inCroesus() && Croesus.Companion.isChestOpened(slotIn)) {
ci.cancel();
}
if (DungeonLeap.Companion.inLeapMenu() && DungeonLeap.Companion.isHighlightedLeapPlayer(slotIn)) {
- ci.cancel();
+ ci.cancel();
- ItemStack stack = new ItemStack(Blocks.wool, 1, EnumDyeColor.GREEN.getMetadata());
+ ItemStack stack = new ItemStack(Blocks.wool, 1, EnumDyeColor.GREEN.getMetadata());
- this.zLevel = 100.0F;
- this.itemRender.zLevel = 100.0F;
+ this.zLevel = 100.0F;
+ this.itemRender.zLevel = 100.0F;
- GlStateManager.enableDepth();
- this.itemRender.renderItemAndEffectIntoGUI(
- stack,
- slotIn.xDisplayPosition,
- slotIn.yDisplayPosition
- );
- this.itemRender.renderItemOverlayIntoGUI(this.fontRendererObj, stack,
- slotIn.xDisplayPosition, slotIn.yDisplayPosition, ""
- );
+ GlStateManager.enableDepth();
+ this.itemRender.renderItemAndEffectIntoGUI(
+ stack,
+ slotIn.xDisplayPosition,
+ slotIn.yDisplayPosition
+ );
+ this.itemRender.renderItemOverlayIntoGUI(this.fontRendererObj, stack,
+ slotIn.xDisplayPosition, slotIn.yDisplayPosition, ""
+ );
- this.itemRender.zLevel = 0.0F;
- this.zLevel = 0.0F;
+ this.itemRender.zLevel = 0.0F;
+ this.zLevel = 0.0F;
}
}
}