fixes #648
This commit is contained in:
parent
69ac580b3f
commit
3b082dfddb
1 changed files with 27 additions and 0 deletions
|
@ -9,6 +9,7 @@
|
||||||
|
|
||||||
package buildcraft.transport;
|
package buildcraft.transport;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Random;
|
import java.util.Random;
|
||||||
import java.util.TreeMap;
|
import java.util.TreeMap;
|
||||||
|
@ -457,6 +458,32 @@ public class BlockGenericPipe extends BlockContainer {
|
||||||
super.breakBlock(world, x, y, z, par5, par6);
|
super.breakBlock(world, x, y, z, par5, par6);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public ArrayList<ItemStack> getBlockDropped(World world, int x, int y, int z, int metadata, int fortune) {
|
||||||
|
|
||||||
|
if (CoreProxy.proxy.isRenderWorld(world))
|
||||||
|
return null;
|
||||||
|
|
||||||
|
ArrayList<ItemStack> list = new ArrayList<ItemStack>();
|
||||||
|
|
||||||
|
int count = quantityDropped(metadata, fortune, world.rand);
|
||||||
|
for (int i = 0; i < count; i++) {
|
||||||
|
Pipe pipe = getPipe(world, x, y, z);
|
||||||
|
|
||||||
|
if (pipe == null) {
|
||||||
|
pipe = pipeRemoved.get(new BlockIndex(x, y, z));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pipe != null) {
|
||||||
|
if (pipe.itemID > 0) {
|
||||||
|
pipe.dropContents();
|
||||||
|
list.add(new ItemStack(pipe.itemID, 1, damageDropped(metadata)));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return list;
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getTextureFile() {
|
public String getTextureFile() {
|
||||||
return DefaultProps.TEXTURE_BLOCKS;
|
return DefaultProps.TEXTURE_BLOCKS;
|
||||||
|
|
Loading…
Reference in a new issue