mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-27 23:45:55 +00:00
Fix painting machine not properly applying facade paints
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user