Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bonii-xx committed Sep 20, 2014
2 parents ea67ebc + 2024846 commit 11cd201
Show file tree
Hide file tree
Showing 7 changed files with 415 additions and 52 deletions.
443 changes: 401 additions & 42 deletions resources/assets/tinker/lang/ru_RU.lang

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions src/main/java/tconstruct/armor/player/ArmorExtended.java
Original file line number Diff line number Diff line change
Expand Up @@ -238,18 +238,19 @@ public void readFromNBT (NBTTagCompound tagCompound)
}
}

public void dropItems (ArrayList<EntityItem> drops)
public void dropItems ()
{
EntityPlayer player = parent.get();
player.captureDrops = true;
for (int i = 0; i < 4; ++i)
{
if (this.inventory[i] != null)
{
EntityItem entityItem = player.func_146097_a(this.inventory[i], true, false);
drops.add(entityItem);
player.func_146097_a(this.inventory[i], true, false);
this.inventory[i] = null;
}
}
player.captureDrops = false;
}

@Override
Expand Down
7 changes: 4 additions & 3 deletions src/main/java/tconstruct/armor/player/KnapsackInventory.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,18 +158,19 @@ public void readFromNBT (NBTTagCompound tagCompound)
}
}

public void dropItems (ArrayList<EntityItem> drops)
public void dropItems ()
{
EntityPlayer player = parent.get();
player.captureDrops = true;
for (int i = 0; i < inventory.length; ++i)
{
if (this.inventory[i] != null)
{
EntityItem entityItem = player.func_146097_a(this.inventory[i], true, false);
drops.add(entityItem);
player.func_146097_a(this.inventory[i], true, false);
this.inventory[i] = null;
}
}
player.captureDrops = false;
}

public void unequipItems ()
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/tconstruct/armor/player/TPlayerHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -261,8 +261,8 @@ public void playerDrops (PlayerDropsEvent evt)
else
stats.hunger = evt.entityPlayer.getFoodStats().getFoodLevel();

stats.armor.dropItems(evt.drops);
stats.knapsack.dropItems(evt.drops);
stats.armor.dropItems();
stats.knapsack.dropItems();

playerStats.put(evt.entityPlayer.getPersistentID(), stats);
}
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/tconstruct/library/TConstructRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ public static Item getItem (String name)
* ingot, toolRod, pickaxeHead, shovelHead, hatchetHead, swordBlade,
* wideGuard, handGuard, crossbar, binding, frypanHead, signHead,
* knifeBlade, chiselHead, toughRod, toughBinding, largePlate, broadAxeHead,
* scytheHead, excavatorHead, largeBlade, hammerHead, fullGuard, bowstring
* scytheHead, excavatorHead, largeBlade, hammerHead, fullGuard, bowString,
* fletching, arrowHead
*/
static HashMap<String, ItemStack> itemstackDirectory = new HashMap<String, ItemStack>();

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/tconstruct/tools/TinkerTools.java
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void preInit (FMLPreInitializationEvent event)
TConstructRegistry.addItemToDirectory("blankPattern", TinkerTools.blankPattern);
TConstructRegistry.addItemToDirectory("woodPattern", TinkerTools.woodPattern);

String[] patternTypes = { "ingot", "toolRod", "pickaxeHead", "shovelHead", "hatchetHead", "swordBlade", "wideGuard", "handGuard", "crossbar", "binding", "frypanHead", "signHead", "knifeBlade", "chiselHead", "toughRod", "toughBinding", "largePlate", "broadAxeHead", "scytheHead", "excavatorHead", "largeBlade", "hammerHead", "fullGuard" };
String[] patternTypes = { "ingot", "toolRod", "pickaxeHead", "shovelHead", "hatchetHead", "swordBlade", "wideGuard", "handGuard", "crossbar", "binding", "frypanHead", "signHead", "knifeBlade", "chiselHead", "toughRod", "toughBinding", "largePlate", "broadAxeHead", "scytheHead", "excavatorHead", "largeBlade", "hammerHead", "fullGuard", "bowString", "fletching", "arrowHead" };

for (int i = 1; i < patternTypes.length; i++)
{
Expand Down
1 change: 1 addition & 0 deletions src/main/java/tconstruct/tools/items/CreativeModifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ public void addInformation (ItemStack stack, EntityPlayer player, List list, boo
{
String targetLock = "None";
targetLock = stack.getTagCompound().getString("TargetLock");
targetLock = StatCollector.translateToLocal("tool." + targetLock.toLowerCase());
list.add(StatCollector.translateToLocal("creativeModLock.tooltip") + targetLock);
}
}
Expand Down

0 comments on commit 11cd201

Please sign in to comment.