small fixes

- Fixed a bug with BP4 render position
- Fixed a recipe error
- Fixed a missing recipe
- Updated version number
- Minor simplifications to rail initialization.
This commit is contained in:
Jonathan 2020-03-19 09:01:06 -05:00
parent 2063c20222
commit 8f9c2a99cf
4 changed files with 9 additions and 9 deletions

View file

@ -1,2 +1,2 @@
modVersion=4.4.1_021
modVersion=4.4.1_022
signedBy=NitroxydeX

View file

@ -248,7 +248,7 @@ public enum RenderEnum {
locoIC4MG(EntityLocoDieselIC4_DSB_MG.class, new ModelLocoDieselIC4_DSB_MG(), "IC4_DSB_MG_", true, new float[] { -0.8F, -0.44F, 0.0F }, null, null, "", 0, null, "", null, 0, false),
locoBR185(EntityLocoElectricBR185.class, new BR185_EngineModel(), "BR185_Engine_", true, new float[] { -2.0F, 0.1F, 0.0F }, new float[] { 0F, 180F, 180F }, null, "", 0, null, "", null, 0, false),
locoClass85(EntityLocoElectricClass85.class, new ModelClass85(), "Class85", false, new float[] { -3.0F, 0.65F, 0.0F }, new float[] { 0F, 90F, 180F }, null, "", 0, null, "", null, 0, false),
locoBP4(EntityLocoElectricBP4.class, new ModelBP4(), "bp4_", true, new float[] { -2.2F, 0.25F, 0.075F }, new float[] { 0F, 180F, 180F }, new float[]{1f,1.1f,0.9f}, "", 0, null, "", null, 0, false),
locoBP4(EntityLocoElectricBP4.class, new ModelBP4(), "bp4_", true, new float[] { -2.2F, 0.25F, 0.125F }, new float[] { 0F, 180F, 180F }, new float[]{1f,1.1f,0.9f}, "", 0, null, "", null, 0, false),
locoDeltic(EntityLocoDieselDeltic.class, new ModelDeltic(), "Deltic", false, new float[] { -2.25F, 0.8F, 0.0F }, new float[] { 0F, 90F, 180F }, null, "largesmoke", 1, new ArrayList<double[]>() {
{
add(new double[]{2.3D, 1.6D, 0D});

View file

@ -367,10 +367,12 @@ public class RecipeHandler {
// Medium Straight (3 Recipes? Really?)
TrainCraftingManager.instance.addRecipe(new ItemStack(ItemIDs.tcRailMediumStraight.item, 1),
"S ", "S ", "S ", Character.valueOf('S'), ItemIDs.tcRailSmallStraight.item );
" S ", " S ", " S ", Character.valueOf('S'), ItemIDs.tcRailSmallStraight.item );
// Long Straight (3 Recipes? Really?)
TrainCraftingManager.instance.addRecipe(new ItemStack(ItemIDs.tcRailLongStraight.item, 1),
" ", " M ", " M ", Character.valueOf('M'), ItemIDs.tcRailMediumStraight.item );
TrainCraftingManager.instance.addRecipe(new ItemStack(ItemIDs.tcRailLongStraight.item, 1),
" M ", " M ", " ", Character.valueOf('M'), ItemIDs.tcRailMediumStraight.item );
// Medium Turn
TrainCraftingManager.instance.addRecipe(new ItemStack(ItemIDs.tcRailMediumTurn.item, 1),

View file

@ -71,12 +71,10 @@ public class TileTCRail extends TileEntity {
private ItemTCRail.TrackTypes renderType = null;
public ItemTCRail.TrackTypes getTrackType(){
if (renderType == null){
if(hasModel && getType() != null){
for(ItemTCRail.TrackTypes rail : ItemTCRail.TrackTypes.values()){
if (rail.getLabel().equals(getType())){
renderType = rail;
}
if (renderType == null && hasModel && getType() != null){
for(ItemTCRail.TrackTypes rail : ItemTCRail.TrackTypes.values()){
if (rail.getLabel().equals(getType())){
renderType = rail;
}
}
}