More MCP updates
This commit is contained in:
parent
61fd692f77
commit
78dc1708d0
3 changed files with 8 additions and 8 deletions
|
@ -27,7 +27,7 @@ public abstract class ItemBptBase extends ItemBuildCraft {
|
||||||
|
|
||||||
maxStackSize = 1;
|
maxStackSize = 1;
|
||||||
iconIndex = 5 * 16 + 0;
|
iconIndex = 5 * 16 + 0;
|
||||||
this.setTabToDisplayOn(CreativeTabs.tabMisc);
|
this.setCreativeTab(CreativeTabs.tabMisc);
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings({ "all" })
|
@SuppressWarnings({ "all" })
|
||||||
|
|
|
@ -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
|
double nearestDistance = 0, distance; //The initialization of nearestDistance is only to make the compiler shut up
|
||||||
|
|
||||||
for (TilePathMarker t : availableMarkers) {
|
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;
|
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));
|
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) {
|
public static void clearAvailableMarkersList(World w) {
|
||||||
for (Iterator<TilePathMarker> it = availableMarkers.iterator(); it.hasNext();) {
|
for (Iterator<TilePathMarker> it = availableMarkers.iterator(); it.hasNext();) {
|
||||||
TilePathMarker t = it.next();
|
TilePathMarker t = it.next();
|
||||||
if (t.worldObj.provider.worldType != w.provider.worldType) {
|
if (t.worldObj.provider.dimensionId != w.provider.dimensionId) {
|
||||||
it.remove();
|
it.remove();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -165,7 +165,7 @@ public abstract class GuiAdvancedInterface extends GuiBuildCraft {
|
||||||
if (s.length() > 0) {
|
if (s.length() > 0) {
|
||||||
int i2 = (lastX - cornerX);
|
int i2 = (lastX - cornerX);
|
||||||
int k2 = lastY - cornerY;
|
int k2 = lastY - cornerY;
|
||||||
func_74190_a(s, i2, k2);
|
drawCreativeTabHoveringText(s, i2, k2);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue