Fix painting machine not properly applying facade paints

This commit is contained in:
tterrag1098 committed 2015-08-23 22:19:57 -04:00
1 parent a7c46a84c1
commit 44694a3ec2
2 files changed
+4 -6

No files matched your search

@@ -237,11 +237,6 @@ public class ItemConduitFacade extends Item implements IAdvancedTooltipProvider,
@Override
public ResultStack[] getCompletedResult(float chance, MachineRecipeInput... inputs) {
ResultStack[] res = super.getCompletedResult(chance, inputs);
if (res != null && res.length > 0) {
if (res[0].item != null && res[0].item.getItem() == ItemConduitFacade.this) {
res[0] = new ResultStack(new ItemStack(ItemConduitFacade.this));
}
}
return res;
}
}
@@ -69,11 +69,14 @@ public final class PainterUtil {
public static void setSourceBlock(ItemStack item, Block source, int meta) {
NBTTagCompound tag = item.getTagCompound();
if(tag == null) {
if (tag == null) {
tag = new NBTTagCompound();
item.setTagCompound(tag);
}
setSourceBlock(item.getTagCompound(), source, meta);
if (item.getTagCompound().hasNoTags()) {
item.setTagCompound(null);
}
}
public static void setSourceBlock(NBTTagCompound tag, Block source, int meta) {