Skip to content

Commit

Permalink
Last few changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tterrag1098 committed Apr 22, 2014
1 parent b6a4b47 commit 4e6f38d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/tterrag/rtc/RecipeTweakingCore.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ static void doTweaks(EventTime event)
{
for (String packageName : packageNames)
{
System.out.println(packageName);
removeRecipes(event, packageName);
addRecipes(event, packageName);
}
Expand Down
6 changes: 5 additions & 1 deletion src/tterrag/rtc/TweakingRegistry.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ public String toString()
}
}

/**
* The main way of removing recipes
* @param id - ID of the item/block being removed
* @param damage - damage value/ metadata (-1 for all)
*/
public static void markItemForRecipeRemoval(int id, int damage) {
if(!recipesToRemove.containsKey(id)) {
recipesToRemove.put(id, new HashSet<Integer>());
Expand Down Expand Up @@ -147,7 +152,6 @@ public void onPlayerJoin(EntityJoinWorldEvent event)
{
RecipeTweakingCore.doTweaks(EventTime.PLAYER_JOIN);
RecipeTweakingCore.donePlayerJoinTweaks = true;
System.out.println("Attempted late recipe addition");
}
}
}

0 comments on commit 4e6f38d

Please sign in to comment.