Made fluid collector not output and input wrong stuff

This commit is contained in:
Ellpeck 2016-06-23 19:27:42 +02:00
parent c1eb3fb644
commit c297df9cc4
2 changed files with 4 additions and 7 deletions

View file

@ -19,7 +19,7 @@ group = "de.ellpeck.actuallyadditions"
archivesBaseName = "ActuallyAdditions"
minecraft {
version = "1.9.4-12.17.0.1957"
version = "1.10-12.18.0.1983-1.10.0"
runDir = "idea"
mappings = "snapshot_20160519"

View file

@ -21,18 +21,15 @@ import net.minecraft.util.math.BlockPos;
public class DispenserHandlerFertilize extends BehaviorDefaultDispenseItem{
@Override
public ItemStack dispenseStack(IBlockSource source, ItemStack stack){
EnumFacing facing = BlockDispenser.getFacing(source.getBlockMetadata());
int x = source.getBlockTileEntity().getPos().getX()+facing.getFrontOffsetX();
int y = source.getBlockTileEntity().getPos().getY()+facing.getFrontOffsetY();
int z = source.getBlockTileEntity().getPos().getZ()+facing.getFrontOffsetZ();
BlockPos pos = new BlockPos(x, y, z);
EnumFacing facing = source.func_189992_e().getValue(BlockDispenser.FACING);
BlockPos pos = source.getBlockPos().offset(facing);
if(ItemDye.applyBonemeal(stack, source.getWorld(), pos)){
source.getWorld().playEvent(2005, pos, 0);
}
return stack;
}