Skip to content

Commit

Permalink
Fixed blood drop behavior, misc other fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mDiyo committed Jan 2, 2014
1 parent a5aaa6f commit 5e281b8
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 22 deletions.
2 changes: 1 addition & 1 deletion src/tconstruct/common/TContent.java
Expand Up @@ -50,7 +50,7 @@
public class TContent implements IFuelHandler
{
// Supresses console spam when iguana's tweaks remove stuff
public static boolean supressMissingToolLogs = false;
public static boolean supressMissingToolLogs = PHConstruct.forceToolLogsOff;

//Patterns and other materials
public static Item blankPattern;
Expand Down
8 changes: 4 additions & 4 deletions src/tconstruct/items/Jerky.java
Expand Up @@ -19,7 +19,7 @@ public class Jerky extends SpecialFood
public static String[] textureNames = new String[] { "beef", "chicken", "pork", "mutton", "fish", "monster", "blueslime", "blood" };
public static String[] itemNames = new String[] { "jerky.beef", "jerky.chicken", "jerky.pig", "jerky.sheep", "jerky.fish", "jerky.zombie", "jerky.blueslime", "jerky.blood" };
public static int[] hunger = new int[] { 8, 6, 8, 6, 5, 4, 6, 4 };
public static float[] saturation = new float[] { 1.0f, 0.8f, 1.0f, 0.8f, 0.8f, 0.4f, 1.0f, 0.25f };
public static float[] saturation = new float[] { 1.0f, 0.8f, 1.0f, 0.8f, 0.8f, 0.4f, 1.0f, 0.4f };
public static int[] overhaulHunger = new int[] { 1, 1, 1, 1, 1, 1, 1, 1 };

public Jerky(int id, boolean hungerOverhaul)
Expand Down Expand Up @@ -51,11 +51,11 @@ protected void onFoodEaten (ItemStack stack, World world, EntityPlayer player)
{
if (stack.getItemDamage() == 7)
{
int duration = 20 * 30;
PotionEffect potion = player.getActivePotionEffect(Potion.regeneration);
int duration = 0;
PotionEffect potion = player.getActivePotionEffect(Potion.field_76434_w);
if (potion != null)
duration = potion.duration;
player.addPotionEffect(new PotionEffect(Potion.field_76434_w.id, duration + 20 * 30, 0));
player.addPotionEffect(new PotionEffect(Potion.field_76434_w.id, duration + 20 * 60, 1));
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/tconstruct/items/blocks/LavaTankItemBlock.java
Expand Up @@ -38,7 +38,7 @@ public void addInformation (ItemStack stack, EntityPlayer player, List list, boo
NBTTagCompound liquidTag = stack.getTagCompound().getCompoundTag("Fluid");
if (liquidTag != null)
{
list.add(StatCollector.translateToLocal("searedtank1.tooltip") + StatCollector.translateToLocal(liquidTag.getString("FluidName")));
list.add(StatCollector.translateToLocal("searedtank1.tooltip") + " " + StatCollector.translateToLocal(liquidTag.getString("FluidName")));
list.add(liquidTag.getInteger("Amount") + " mB");
}
}
Expand Down
3 changes: 1 addition & 2 deletions src/tconstruct/library/blocks/IDrawbridgeLogicBase.java
Expand Up @@ -2,7 +2,6 @@

public interface IDrawbridgeLogicBase
{

public boolean hasExtended ();

public byte getPlacementDirection ();
}
2 changes: 1 addition & 1 deletion src/tconstruct/library/tools/ToolCore.java
Expand Up @@ -569,7 +569,7 @@ public void buildTool (int id, String name, List list)
boolean supress = false;
try
{
clazz = Class.forName(tconstruct.common.TContent.class.getName());
clazz = Class.forName("tconstruct.common.TContent"); //TODO: Make sure this is still working in 1.7.
fld = clazz.getField("supressMissingToolLogs");
supress = fld.getBoolean(fld);
}
Expand Down
15 changes: 2 additions & 13 deletions src/tconstruct/util/config/PHConstruct.java
Expand Up @@ -42,6 +42,7 @@ public static void initProps (File location)
*/

superfunWorld = config.get("Superfun", "All the world is Superfun", false).getBoolean(false);
forceToolLogsOff = config.get("Logging", "Disable tool build messages", false).getBoolean(false);

keepHunger = config.get("Difficulty Changes", "Keep hunger on death", true).getBoolean(true);
keepLevels = config.get("Difficulty Changes", "Keep levels on death", true).getBoolean(true);
Expand Down Expand Up @@ -165,19 +166,6 @@ public static void initProps (File location)
slimeLeaves = config.getBlock("Slime Grass Leaves", 3240).getInt(3240);
slimeSapling = config.getBlock("Slime Tree Sapling", 3241).getInt(3241);

meatBlock = config.getBlock("Meat Block", 3242).getInt(3242);
woodCrafterSlab = config.getBlock("Crafting Slab", 3243).getInt(3243);
woolSlab1 = config.getBlock("Wool Slab 1", 3244).getInt(3244);
woolSlab2 = config.getBlock("Wool Slab 2", 3245).getInt(3245);
castingChannel = config.getBlock("Casting Channel", 3249).getInt(3249);

slimePoolBlue = config.getBlock("Liquid Blue Slime", 3235).getInt(3235);
slimeGel = config.getBlock("Congealed Slime", 3237).getInt(3237);
slimeGrass = config.getBlock("Slime Grass", 3238).getInt(3238);
slimeTallGrass = config.getBlock("Slime Tall Grass", 3239).getInt(3239);
slimeLeaves = config.getBlock("Slime Grass Leaves", 3240).getInt(3240);
slimeSapling = config.getBlock("Slime Tree Sapling", 3241).getInt(3241);

meatBlock = config.getBlock("Meat Block", 3242).getInt(3242);
woodCrafterSlab = config.getBlock("Crafting Slab", 3243).getInt(3243);
woolSlab1 = config.getBlock("Wool Slab 1", 3244).getInt(3244);
Expand Down Expand Up @@ -726,6 +714,7 @@ public static void initProps (File location)

public static boolean gregtech;
public static boolean lavaFortuneInteraction;
public static boolean forceToolLogsOff;

public static int islandRarity;

Expand Down

0 comments on commit 5e281b8

Please sign in to comment.