mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-16 01:54:59 +00:00
No more drop drops from interface (#265)
Co-authored-by: Maya <[email protected]>
This commit is contained in:
1 parent
0908e906d2
commit
bedb2c25e1
3 files changed
+34
-5
No files matched your search
@@ -1,11 +1,13 @@
|
||||
package com.glodblock.github.common.tile;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.util.List;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.world.World;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import net.minecraftforge.fluids.Fluid;
|
||||
import net.minecraftforge.fluids.FluidStack;
|
||||
@@ -218,4 +220,11 @@ public class TileFluidInterface extends TileInterface implements IDualHost {
|
||||
getInternalFluid().setFluidInSlot(id, fluid);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void getDrops(World w, int x, int y, int z, List<ItemStack> drops) {
|
||||
this.fluidDuality.addDrops(drops);
|
||||
this.fluidDuality.convertDrops(drops, this.getInterfaceDuality().getWaitingToSend());
|
||||
super.getDrops(w, x, y, z, drops);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user