Skip to content

Commit

Permalink
fix Tinkers Weaponry book spawning with beginner book option off
Browse files Browse the repository at this point in the history
  • Loading branch information
asiekierka committed Dec 28, 2014
1 parent 34e5f90 commit 40c977f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/main/java/tconstruct/weaponry/WeaponryHandler.java
Expand Up @@ -8,6 +8,7 @@
import tconstruct.library.event.SmelteryCastEvent;
import tconstruct.library.util.IToolPart;
import tconstruct.tools.TinkerTools;
import tconstruct.util.config.PHConstruct;
import tconstruct.weaponry.ammo.ArrowAmmo;
import tconstruct.weaponry.ammo.BoltAmmo;
import tconstruct.library.tools.DualMaterialToolPart;
Expand Down Expand Up @@ -37,6 +38,11 @@ public void onCrafting (PlayerEvent.ItemCraftedEvent event)
{
if (item == Item.getItemFromBlock(TinkerTools.toolStationWood))
{
if (!PHConstruct.beginnerBook)
{
return;
}

TPlayerStats stats = TPlayerStats.get(event.player);
if (!stats.weaponryManual)
{
Expand Down

0 comments on commit 40c977f

Please sign in to comment.