-
-
Notifications
You must be signed in to change notification settings - Fork 912
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into optional-baritone
- Loading branch information
Showing
7 changed files
with
109 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Crash | ||
description: Report a crash to help us improve Meteor. | ||
labels: [ crash ] | ||
body: | ||
- type: textarea | ||
id: reproducing | ||
attributes: | ||
label: Steps to reproduce | ||
description: How do you trigger this crash? | ||
placeholder: | | ||
1. I did this thing; | ||
2. Then I did this other thing, which caused the crash. | ||
validations: | ||
required: true | ||
- type: input | ||
id: crash-report | ||
attributes: | ||
label: Link to crash report/log (upload to https://mclo.gs and paste resulting link here) | ||
placeholder: https://mclo.gs/xxxxxx | ||
validations: | ||
required: true | ||
- type: input | ||
id: meteor-version | ||
attributes: | ||
label: Meteor Version | ||
placeholder: Meteor X.Y.Z (or X.Y.Z-build_number) | ||
validations: | ||
required: true | ||
- type: input | ||
id: mc-version | ||
attributes: | ||
label: Minecraft Version | ||
placeholder: MC X.Y.Z | ||
validations: | ||
required: true | ||
- type: dropdown | ||
id: operating-systems | ||
attributes: | ||
label: Operating System | ||
options: | ||
- macOS | ||
- Windows | ||
- Linux | ||
validations: | ||
required: true | ||
- type: checkboxes | ||
id: prerequisites | ||
attributes: | ||
label: Before submitting a crash report | ||
options: | ||
- label: | | ||
This crash wasn't already reported (I have searched crash reports on GitHub). | ||
required: true | ||
- label: | | ||
This is a valid crash (I am able to reproduce this on the latest dev build). | ||
required: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
src/main/java/meteordevelopment/meteorclient/utils/tooltip/TextTooltipComponent.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* This file is part of the Meteor Client distribution (https://github.com/MeteorDevelopment/meteor-client). | ||
* Copyright (c) Meteor Development. | ||
*/ | ||
|
||
package meteordevelopment.meteorclient.utils.tooltip; | ||
|
||
import net.minecraft.client.gui.tooltip.OrderedTextTooltipComponent; | ||
import net.minecraft.client.gui.tooltip.TooltipComponent; | ||
import net.minecraft.text.OrderedText; | ||
import net.minecraft.text.Text; | ||
|
||
public class TextTooltipComponent extends OrderedTextTooltipComponent implements MeteorTooltipData { | ||
public TextTooltipComponent(OrderedText text) { | ||
super(text); | ||
} | ||
|
||
public TextTooltipComponent(Text text) { | ||
this(text.asOrderedText()); | ||
} | ||
|
||
@Override | ||
public TooltipComponent getComponent() { | ||
return this; | ||
} | ||
} |