mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-19 11:59:14 +00:00
Merge branch 'master' into weaponry
This commit is contained in:
commit
7f87feaa0f
4 files changed
+94
-1
No files matched your search
@@ -44,6 +44,22 @@ public class TinkerToolEvents
|
||||
AbilityHelper.spawnItemAtPlayer(event.player, new ItemStack(TinkerTools.manualBook, 1, 1));
|
||||
}
|
||||
}
|
||||
|
||||
// slab pattern chest
|
||||
if(item == Item.getItemFromBlock(TinkerTools.craftingSlabWood) && event.crafting.getItemDamage() == 4) {
|
||||
// copy over NBT
|
||||
for(int i = 0; i < event.craftMatrix.getSizeInventory(); i++) {
|
||||
ItemStack stack = event.craftMatrix.getStackInSlot(i);
|
||||
if(stack == null)
|
||||
continue;
|
||||
// regular pattern chest
|
||||
if(stack.getItem() == Item.getItemFromBlock(TinkerTools.toolStationWood) && stack.getItemDamage() == 5)
|
||||
{
|
||||
event.crafting.setTagCompound(stack.getTagCompound());
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user