Return slabs on paper craft(this time without bug)

This commit is contained in:
Blood-Asp 2016-10-07 01:12:46 +02:00 committed by Technus
parent 1bdac81194
commit c11d921166

View file

@ -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) {