More MCP updates

This commit is contained in:
Christian 2012-09-21 23:00:28 -04:00
parent 61fd692f77
commit 78dc1708d0
3 changed files with 8 additions and 8 deletions

View file

@ -1,8 +1,8 @@
/**
/**
* Copyright (c) SpaceToad, 2011-2012
* http://www.mod-buildcraft.com
*
* BuildCraft is distributed under the terms of the Minecraft Mod Public
*
* BuildCraft is distributed under the terms of the Minecraft Mod Public
* License 1.0, or MMPL. Please check the contents of the license located in
* http://www.mod-buildcraft.com/MMPL-1.0.txt
*/
@ -27,7 +27,7 @@ public abstract class ItemBptBase extends ItemBuildCraft {
maxStackSize = 1;
iconIndex = 5 * 16 + 0;
this.setTabToDisplayOn(CreativeTabs.tabMisc);
this.setCreativeTab(CreativeTabs.tabMisc);
}
@SuppressWarnings({ "all" })

View file

@ -76,7 +76,7 @@ public class TilePathMarker extends TileMarker {
double nearestDistance = 0, distance; //The initialization of nearestDistance is only to make the compiler shut up
for (TilePathMarker t : availableMarkers) {
if (t == this || t == this.links[0] || t == this.links[1] || t.worldObj.provider.worldType != this.worldObj.provider.worldType)
if (t == this || t == this.links[0] || t == this.links[1] || t.worldObj.provider.dimensionId != this.worldObj.provider.dimensionId)
continue;
distance = Math.sqrt(Math.pow(this.xCoord - t.xCoord, 2) + Math.pow(this.yCoord - t.yCoord, 2) + Math.pow(this.zCoord - t.zCoord, 2));
@ -257,7 +257,7 @@ public class TilePathMarker extends TileMarker {
public static void clearAvailableMarkersList(World w) {
for (Iterator<TilePathMarker> it = availableMarkers.iterator(); it.hasNext();) {
TilePathMarker t = it.next();
if (t.worldObj.provider.worldType != w.provider.worldType) {
if (t.worldObj.provider.dimensionId != w.provider.dimensionId) {
it.remove();
}
}

View file

@ -57,7 +57,7 @@ public abstract class GuiAdvancedInterface extends GuiBuildCraft {
drawTexturedModalRect(cornerX + x, cornerY + y, 16 * textureJ, 16 * textureI, 16, 16);
}
}
public void drawStack(ItemStack item) {
@ -165,7 +165,7 @@ public abstract class GuiAdvancedInterface extends GuiBuildCraft {
if (s.length() > 0) {
int i2 = (lastX - cornerX);
int k2 = lastY - cornerY;
func_74190_a(s, i2, k2);
drawCreativeTabHoveringText(s, i2, k2);
}
}