Fix texture paths
This commit is contained in:
parent
3a6e54ca69
commit
31682c4c7b
4 changed files with 9 additions and 7 deletions
|
@ -35,6 +35,7 @@ import net.minecraft.src.buildcraft.core.BptBuilderBase;
|
|||
import net.minecraft.src.buildcraft.core.BptBuilderBlueprint;
|
||||
import net.minecraft.src.buildcraft.core.BptBuilderTemplate;
|
||||
import net.minecraft.src.buildcraft.core.BptContext;
|
||||
import net.minecraft.src.buildcraft.core.DefaultProps;
|
||||
import net.minecraft.src.buildcraft.core.EntityLaser;
|
||||
import net.minecraft.src.buildcraft.core.EntityRobot;
|
||||
import net.minecraft.src.buildcraft.core.IBuilderInventory;
|
||||
|
@ -230,7 +231,7 @@ public class TileBuilder extends TileBuildCraft implements IBuilderInventory, IP
|
|||
EntityLaser laser = new EntityLaser(worldObj);
|
||||
|
||||
laser.setPositions(previous.i + 0.5, previous.j + 0.5, previous.k + 0.5, b.i + 0.5, b.j + 0.5, b.k + 0.5);
|
||||
laser.setTexture("/net/minecraft/src/buildcraft/core/gui/stripes.png");
|
||||
laser.setTexture(DefaultProps.TEXTURE_PATH_ENTITIES + "/stripes.png");
|
||||
worldObj.spawnEntityInWorld(laser);
|
||||
pathLasers.add(laser);
|
||||
}
|
||||
|
|
|
@ -6,6 +6,7 @@ import java.util.TreeSet;
|
|||
import net.minecraft.src.NBTTagCompound;
|
||||
import net.minecraft.src.TileEntity;
|
||||
import net.minecraft.src.buildcraft.core.BlockIndex;
|
||||
import net.minecraft.src.buildcraft.core.DefaultProps;
|
||||
import net.minecraft.src.buildcraft.core.EntityLaser;
|
||||
import net.minecraft.src.buildcraft.core.WorldIterator;
|
||||
import net.minecraft.src.buildcraft.core.WorldIteratorRadius;
|
||||
|
@ -43,7 +44,7 @@ public class TilePathMarker extends TileMarker {
|
|||
EntityLaser laser = new EntityLaser(worldObj);
|
||||
laser.setPositions(xCoord + 0.5, yCoord + 0.5, zCoord + 0.5, pathMarker.xCoord + 0.5, pathMarker.yCoord + 0.5,
|
||||
pathMarker.zCoord + 0.5);
|
||||
laser.setTexture("/net/minecraft/src/buildcraft/core/gui/laser_1.png");
|
||||
laser.setTexture(DefaultProps.TEXTURE_PATH_ENTITIES + "/laser_1.png");
|
||||
worldObj.spawnEntityInWorld(laser);
|
||||
|
||||
connect(pathMarker, laser);
|
||||
|
|
|
@ -19,7 +19,7 @@ public class DefaultProps {
|
|||
|
||||
public static String TEXTURE_PATH_GUI = "/gfx/buildcraft/gui";
|
||||
public static String TEXTURE_PATH_BLOCKS = "/gfx/buildcraft/blocks";
|
||||
public static String TEXTURE_PATH_ENTITIES = "/gfx/buildcraft/entitites";
|
||||
public static String TEXTURE_PATH_ENTITIES = "/gfx/buildcraft/entities";
|
||||
|
||||
public static String TEXTURE_BLOCKS = TEXTURE_PATH_BLOCKS + "/blocks.png";
|
||||
public static String TEXTURE_EXTERNAL = TEXTURE_PATH_BLOCKS + "/external.png";
|
||||
|
|
|
@ -43,12 +43,12 @@ public class EntityEnergyLaser extends EntityLaser {
|
|||
@Override
|
||||
public String getTexture() {
|
||||
if (getPowerAverage() <= 1.0)
|
||||
return "/net/minecraft/src/buildcraft/core/gui/laser_1.png";
|
||||
return DefaultProps.TEXTURE_PATH_ENTITIES + "/laser_1.png";
|
||||
else if (getPowerAverage() <= 2.0)
|
||||
return "/net/minecraft/src/buildcraft/core/gui/laser_2.png";
|
||||
return DefaultProps.TEXTURE_PATH_ENTITIES + "/laser_2.png";
|
||||
else if (getPowerAverage() <= 3.0)
|
||||
return "/net/minecraft/src/buildcraft/core/gui/laser_3.png";
|
||||
return DefaultProps.TEXTURE_PATH_ENTITIES + "/laser_3.png";
|
||||
else
|
||||
return "/net/minecraft/src/buildcraft/core/gui/laser_4.png";
|
||||
return DefaultProps.TEXTURE_PATH_ENTITIES + "/laser_4.png";
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue