Skip to content

Commit b28dff6

Browse files
author
Michael Hillcox
committed
Fixed conflict fuck up.
Updated readme
1 parent 546caa0 commit b28dff6

2 files changed

Lines changed: 48 additions & 43 deletions

File tree

README.md

Lines changed: 20 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
1-
## Fgt X-Ray
1+
# X-Ray Mod
22
Minecraft Forge XRay mod
33

4-
## Feature:
5-
- Works with Forge
6-
- Awesome GUI
7-
- Able to add new ores/blocks
8-
- Color selector ( RGB )
4+
### Supports
5+
- Minecraft 1.7.10 / 1.9.4
6+
- Forge 10.13.2.1291 / 12.17.0.2051
97

10-
Working on: Minecraft 1.7.10 and Forge 10.13.2.1291
8+
### Feature:
9+
- Full Support for Forge
10+
- Supports versions back from 1.7.10
11+
- Clean and simple GUI to add blocks
12+
- Colour RGB Selector
13+
- Auto adds ores from other mods.
1114

12-
Tested with:
15+
### Previews:
16+
![XRAY](http://i.imgur.com/N3KOEaE.png)
1317

14-
- Minecraft Forge 1.7.10
15-
- FTB: Direwolf20 modpack
18+
The [Imgur Album](http://imgur.com/a/23dX5)
1619

17-
The rendering is copied off of CJB's MoreInfo mod. Thanks CJB.
20+
### Contributors:
21+
|User | Title / Work Done| Link |
22+
|---|---|---|
23+
|MichaelHillcox | Main Dev |[https://github.com/MichaelHillcox](https://github.com/MichaelHillcox)
24+
|mcd1992 | Original Creator| [https://github.com/mcd1992](https://github.com/mcd1992) ([GitLab](https://gitlab.com/mcd1992))
25+
|BondarenkoArtur | Updater (1.7.10-1.9.4) | [https://github.com/BondarenkoArtur](https://github.com/BondarenkoArtur)
1826

19-
Contributors:
20-
21-
[mcd1992](https://github.com/mcd1992)
22-
23-
[AoKMiKeY](https://github.com/aokmikey)
27+
> A big thanks CJB for his rendering system.
2428
2529
## License
2630
Licensed under the [DBaJ (Don't Be a Jerk) non-commercial care-free license](http://www.dbad-license.org/).

java/com/fgtXray/client/gui/GuiSettings.java

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -121,38 +121,39 @@ public void initGui()
121121
@Override
122122
public void actionPerformed( GuiButton button )
123123
{
124-
// Called on left click of GuiButton
124+
// Called on left click of GuiButton
125125
switch(button.id)
126126
{
127127
case 99: // Print OreDict
128128
for ( String name : OreDictionary.getOreNames() ) // Print the ore dictionary.
129129
{
130-
List<ItemStack> oreStack = OreDictionary.getOres(name);
131-
System.out.print(String.format("[OreDict] %-40.40s [%d types] ( ", name, oreStack.size()));
130+
List<ItemStack> oreStack = OreDictionary.getOres( name);
131+
System.out.print( String.format("[OreDict] %-40.40s [%d types] ( ", name, oreStack.size() ) );
132132
StringBuilder idMetaCsv = new StringBuilder();
133-
if (oreStack.size() < 1) {
134-
List<ItemStack> oreStack = OreDictionary.getOres(name);
135-
System.out.print(String.format("[OreDict] %-40.40s [%d types] ( ", name, oreStack.size()));
136-
StringBuilder idMetaCsv = new StringBuilder();
137-
if (oreStack.size() < 1) {
138-
idMetaCsv.append(" )");
139-
}
133+
if( oreStack.size() < 1 )
134+
{
135+
idMetaCsv.append( " )" );
136+
}
140137

141-
for (ItemStack stack : oreStack) {
142-
if (stack == oreStack.get(oreStack.size() - 1)) {
143-
idMetaCsv.append(String.format("%d:%d )", Item.getIdFromItem(stack.getItem()), stack.getItemDamage()));
144-
} else {
145-
idMetaCsv.append(String.format("%d:%d, ", Item.getIdFromItem(stack.getItem()), stack.getItemDamage()));
146-
}
138+
for( ItemStack stack : oreStack )
139+
{
140+
if( stack == oreStack.get( oreStack.size() - 1 ) )
141+
{
142+
idMetaCsv.append( String.format( "%d:%d )", Item.getIdFromItem( stack.getItem() ), stack.getItemDamage() ) );
143+
}
144+
else
145+
{
146+
idMetaCsv.append( String.format( "%d:%d, ", Item.getIdFromItem( stack.getItem() ), stack.getItemDamage() ) );
147147
}
148-
System.out.println(idMetaCsv.toString());
149148
}
149+
System.out.println( idMetaCsv.toString() );
150+
}
150151

151-
if (!OresSearch.searchList.isEmpty()) // Print out the searchList.
152+
if (!OresSearch.searchList.isEmpty()) // Print out the searchList.
153+
{
154+
for (OreInfo ore : OresSearch.searchList)
152155
{
153-
for (OreInfo ore : OresSearch.searchList) {
154-
System.out.println(String.format("[Fgt XRay] OreInfo( %s, %d, %d, 0x%x, %b )", ore.oreName, ore.id, ore.meta, ore.color[0], ore.draw));
155-
}
156+
System.out.println(String.format("[Fgt XRay] OreInfo( %s, %d, %d, 0x%x, %b )", ore.oreName, ore.id, ore.meta, ore.color[0], ore.draw));
156157
}
157158
}
158159
break;
@@ -244,12 +245,12 @@ public boolean doesGuiPauseGame()
244245
// this removes the stupid power of 2 rule that comes with minecraft.
245246
private static void drawTexturedQuadFit(double x, double y, double width, double height, double zLevel)
246247
{
247-
VertexBuffer tessellator = Tessellator.getInstance().getBuffer();
248-
tessellator.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
249-
tessellator.pos(x + 0, y + height, zLevel).tex( 0,1).endVertex();
250-
tessellator.pos(x + width, y + height, zLevel).tex( 1, 1).endVertex();
251-
tessellator.pos(x + width, y + 0, zLevel).tex( 1,0).endVertex();
252-
tessellator.pos(x + 0, y + 0, zLevel).tex( 0, 0).endVertex();
248+
VertexBuffer tessellate = Tessellator.getInstance().getBuffer();
249+
tessellate.begin(GL11.GL_QUADS, DefaultVertexFormats.POSITION_TEX);
250+
tessellate.pos(x + 0, y + height, zLevel).tex( 0,1).endVertex();
251+
tessellate.pos(x + width, y + height, zLevel).tex( 1, 1).endVertex();
252+
tessellate.pos(x + width, y + 0, zLevel).tex( 1,0).endVertex();
253+
tessellate.pos(x + 0, y + 0, zLevel).tex( 0, 0).endVertex();
253254
Tessellator.getInstance().draw();
254255
}
255256

0 commit comments

Comments
 (0)