Return slabs on paper craft(this time without bug)
This commit is contained in:
parent
1bdac81194
commit
c11d921166
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ import gregtech.api.util.GT_OreDictUnificator;
|
|||
import gregtech.common.items.GT_MetaGenerated_Tool_01;
|
||||
import ic2.core.Ic2Items;
|
||||
import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.stats.Achievement;
|
||||
|
@ -339,6 +340,7 @@ public class GT_Achievements {
|
|||
if (player == null || stack == null) {
|
||||
return;
|
||||
}
|
||||
if(stack.getItem()==Items.paper){player.inventory.addItemStackToInventory(new ItemStack(Blocks.stone_slab,2));}
|
||||
ItemData data = GT_OreDictUnificator.getItemData(stack);
|
||||
if (data != null) {
|
||||
if (data.mPrefix == OrePrefixes.dust && data.mMaterial.mMaterial == Materials.Bronze) {
|
||||
|
|
Loading…
Reference in a new issue