From 6c61829ddca25c572126472e06dbecbb92b93af7 Mon Sep 17 00:00:00 2001 From: modmuss50 Date: Mon, 29 Jun 2015 20:19:56 +0100 Subject: [PATCH] Fixed cable drops --- src/main/java/techreborn/partSystem/fmp/FMPModPart.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/techreborn/partSystem/fmp/FMPModPart.java b/src/main/java/techreborn/partSystem/fmp/FMPModPart.java index f3c6076ce..b034a3378 100644 --- a/src/main/java/techreborn/partSystem/fmp/FMPModPart.java +++ b/src/main/java/techreborn/partSystem/fmp/FMPModPart.java @@ -11,6 +11,7 @@ import codechicken.lib.data.MCDataInput; import codechicken.lib.data.MCDataOutput; import net.minecraft.client.renderer.RenderBlocks; import net.minecraft.entity.Entity; +import net.minecraft.entity.item.EntityItem; import net.minecraft.item.ItemStack; import net.minecraft.nbt.NBTTagCompound; import net.minecraft.util.AxisAlignedBB; @@ -180,6 +181,7 @@ public class FMPModPart extends TMultiPart implements TSlottedPart, public void onRemoved() { iModPart.onRemoved(); super.onRemoved(); + } @Override @@ -195,7 +197,7 @@ public class FMPModPart extends TMultiPart implements TSlottedPart, public Iterable getDrops() { List stackArrayList = new ArrayList(); if(iModPart.getItem() != null){ - stackArrayList.add(iModPart.getItem()); + stackArrayList.add(iModPart.getItem().copy()); } else { LogHelper.error("Part " + iModPart.getName() + " has a null drop"); }